Class: Fbtxt::Parser::Card
- 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
193 194 195 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 193 def minute @minute end |
#name ⇒ Object
Returns the value of attribute name
193 194 195 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 193 def name @name end |
Instance Method Details
#as_json ⇒ Object
194 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 194 def as_json(*) to_s; end |
#pretty_print(q) ⇒ Object
203 204 205 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 203 def pretty_print( q ) q.text( to_s ) end |
#to_s ⇒ Object
196 197 198 199 200 201 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 196 def to_s buf = String.new buf << "#{name}" buf << " #{minute.to_s}" if minute buf end |