Class: Koyomi::Period
- Inherits:
-
Object
- Object
- Koyomi::Period
- Defined in:
- lib/koyomi/period.rb
Instance Attribute Summary collapse
-
#range ⇒ Object
readonly
Returns the value of attribute range.
Instance Method Summary collapse
-
#initialize ⇒ Period
constructor
——————–# instance methods.
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object (private)
throw uniplemeted method to self range.
26 27 28 29 30 31 32 |
# File 'lib/koyomi/period.rb', line 26 def method_missing(name, *args, &block) begin self.range.__send__(name, *args, &block) rescue => e super end end |
Instance Attribute Details
#range ⇒ Object
Returns the value of attribute range.
6 7 8 |
# File 'lib/koyomi/period.rb', line 6 def range @range end |