Module: Kolom::CoreExtensions::ArrayMethods
- Included in:
- Array
- Defined in:
- lib/kolom/core_extensions.rb
Overview
Define extensions for Array class
Instance Method Summary collapse
- #method_missing(method_name, *args, &block) ⇒ Object
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/kolom/core_extensions.rb', line 21 def method_missing(method_name, *args, &block) bengali_method = Kolom::KEYWORDS.key(method_name.to_s) if bengali_method send(Kolom::KEYWORDS[bengali_method].to_sym, *args, &block) else super end end |