Class: MethodNotMissing::OmnipotentObject
- Inherits:
-
Array
- Object
- Array
- MethodNotMissing::OmnipotentObject
- Includes:
- MethodNotMissing
- Defined in:
- lib/method_not_missing/omnipotent_object.rb
Constant Summary
Constants included from MethodNotMissing
Instance Method Summary collapse
Methods included from MethodNotMissing
#const_missing, included, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MethodNotMissing
Instance Method Details
#inspect ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/method_not_missing/omnipotent_object.rb', line 4 def inspect string = "#<#{self.class.name}:#{self.object_id}" instance_variables.each do |var| string += " #{var}=#{instance_variable_get(var)}" end string + ">" end |