Class: FileScheduler::TimeChain
- Defined in:
- lib/file_scheduler/time_chain.rb
Instance Attribute Summary collapse
-
#parts ⇒ Object
readonly
Returns the value of attribute parts.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(*parts) ⇒ TimeChain
constructor
A new instance of TimeChain.
- #to_s ⇒ Object
Constructor Details
#initialize(*parts) ⇒ TimeChain
Returns a new instance of TimeChain.
6 7 8 |
# File 'lib/file_scheduler/time_chain.rb', line 6 def initialize(*parts) @parts = parts.flatten end |
Instance Attribute Details
#parts ⇒ Object (readonly)
Returns the value of attribute parts.
4 5 6 |
# File 'lib/file_scheduler/time_chain.rb', line 4 def parts @parts end |