Module: MissingMethodStaticCollection

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/zm/modules/missing_method_static_collection.rb', line 6

def method_missing(method, *args, &block)
  if @all.respond_to?(method)
    @all.send(method, *args, &block)
  else
    super
  end
end

Instance Attribute Details

#allObject (readonly)

Returns the value of attribute all.



4
5
6
# File 'lib/zm/modules/missing_method_static_collection.rb', line 4

def all
  @all
end