Class: CronWTF::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/rcronwtf/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#entriesObject (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_sObject



8
9
10
# File 'lib/rcronwtf/table.rb', line 8

def to_s
  entries.map{|e| e.to_s}.join("\n")
end