Class: NumericMockObject
- Inherits:
-
Numeric
- Object
- Numeric
- NumericMockObject
show all
- Defined in:
- lib/mspec/mocks/proxy.rb
Instance Method Summary
collapse
Constructor Details
14
15
16
17
|
# File 'lib/mspec/mocks/proxy.rb', line 14
def initialize(name, options={})
@name = name
@null = options[:null_object]
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
19
20
21
|
# File 'lib/mspec/mocks/proxy.rb', line 19
def method_missing(sym, *args, &block)
@null ? self : super
end
|
Instance Method Details
#singleton_method_added(val) ⇒ Object
23
24
|
# File 'lib/mspec/mocks/proxy.rb', line 23
def singleton_method_added(val)
end
|