Class: Numeric
- Inherits:
-
Object
show all
- Defined in:
- lib/whenever/numeric.rb
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/whenever/numeric.rb', line 6
def method_missing(method, *args, &block)
if Whenever::NumericSeconds.public_method_defined?(method)
Whenever::NumericSeconds.new(self).send(method)
else
super
end
end
|
Instance Method Details
#respond_to?(method, include_private = false) ⇒ Boolean
2
3
4
|
# File 'lib/whenever/numeric.rb', line 2
def respond_to?(method, include_private = false)
super || Whenever::NumericSeconds.public_method_defined?(method)
end
|