Class: Fbtxt::Parser::Booking
- Defined in:
- lib/fbtxt/parser/parse_tree-props.rb
Instance Attribute Summary collapse
-
#minute ⇒ Object
Returns the value of attribute minute.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#minute ⇒ Object
Returns the value of attribute minute
131 132 133 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 131 def minute @minute end |
#name ⇒ Object
Returns the value of attribute name
131 132 133 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 131 def name @name end |
Instance Method Details
#pretty_print(q) ⇒ Object
139 140 141 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 139 def pretty_print( q ) q.text( to_s ) end |
#to_s ⇒ Object
132 133 134 135 136 137 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 132 def to_s buf = String.new buf << "#{name}" buf << " #{minute.to_s}" if minute buf end |