Class: Dummy
Instance Method Summary collapse
-
#initialize(name) ⇒ Dummy
constructor
A new instance of Dummy.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(name) ⇒ Dummy
Returns a new instance of Dummy.
200 201 202 203 |
# File 'lib/flex_core.rb', line 200 def initialize (name) puts "Dummy object: <#{name}> created." @name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
205 206 207 |
# File 'lib/flex_core.rb', line 205 def method_missing (method, *args, &block) puts "##{method} was called on <#{@name}> with args: #{args}" end |