Class: Fbtxt::Parser::Referee
- Defined in:
- lib/fbtxt/parser/parse_tree-props.rb
Overview
RefereeLine
Instance Attribute Summary collapse
-
#country ⇒ Object
Returns the value of attribute country.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#country ⇒ Object
Returns the value of attribute country
26 27 28 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 26 def country @country end |
#name ⇒ Object
Returns the value of attribute name
26 27 28 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 26 def name @name end |
Instance Method Details
#pretty_print(q) ⇒ Object
34 35 36 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 34 def pretty_print( q ) q.text( to_s ) end |
#to_s ⇒ Object
27 28 29 30 31 32 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 27 def to_s buf = String.new buf << name buf << " (#{country})" if country buf end |