Class: Atheme::Helpers::List
- Inherits:
-
Array
- Object
- Array
- Atheme::Helpers::List
- Defined in:
- lib/atheme/helpers.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
17 18 19 20 21 |
# File 'lib/atheme/helpers.rb', line 17 def method_missing(method, *args, &block) method = method.to_s.singularize.to_sym return self.map {|v| v[method] }.flatten if self.first.has_key? method super end |