Class: CronWTF::Table
- Inherits:
-
Object
- Object
- CronWTF::Table
- Defined in:
- lib/rcronwtf/table.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Instance Method Summary collapse
-
#initialize(table) ⇒ Table
constructor
A new instance of Table.
- #to_s ⇒ Object
Constructor Details
#initialize(table) ⇒ Table
Returns a new instance of Table.
4 5 6 |
# File 'lib/rcronwtf/table.rb', line 4 def initialize(table) @entries = parse(table) end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
2 3 4 |
# File 'lib/rcronwtf/table.rb', line 2 def entries @entries end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/rcronwtf/table.rb', line 8 def to_s entries.map{|e| e.to_s}.join("\n") end |