Class: Instantiator::MethodInvocationSink
- Inherits:
-
BlankSlate
- Object
- BlankSlate
- Instantiator::MethodInvocationSink
show all
- Defined in:
- lib/instantiator.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
18
19
20
|
# File 'lib/instantiator.rb', line 18
def method_missing(method_name, *args, &block)
MethodInvocationSink.new
end
|
Instance Method Details
#to_ary ⇒ Object
27
28
29
|
# File 'lib/instantiator.rb', line 27
def to_ary
Array.new
end
|
#to_hash ⇒ Object
30
31
32
|
# File 'lib/instantiator.rb', line 30
def to_hash
Hash.new
end
|
#to_int ⇒ Object
24
25
26
|
# File 'lib/instantiator.rb', line 24
def to_int
Integer(0)
end
|
#to_str ⇒ Object
21
22
23
|
# File 'lib/instantiator.rb', line 21
def to_str
String.new
end
|