Class: Fbtxt::Parser::GoalType
- Defined in:
- lib/fbtxt/parser/parse_tree-match.rb
Instance Attribute Summary collapse
-
#freekick ⇒ Object
Returns the value of attribute freekick.
-
#header ⇒ Object
Returns the value of attribute header.
-
#og ⇒ Object
Returns the value of attribute og.
-
#pen ⇒ Object
Returns the value of attribute pen.
Instance Method Summary collapse
Instance Attribute Details
#freekick ⇒ Object
Returns the value of attribute freekick
272 273 274 |
# File 'lib/fbtxt/parser/parse_tree-match.rb', line 272 def freekick @freekick end |
#header ⇒ Object
Returns the value of attribute header
272 273 274 |
# File 'lib/fbtxt/parser/parse_tree-match.rb', line 272 def header @header end |
#og ⇒ Object
Returns the value of attribute og
272 273 274 |
# File 'lib/fbtxt/parser/parse_tree-match.rb', line 272 def og @og end |
#pen ⇒ Object
Returns the value of attribute pen
272 273 274 |
# File 'lib/fbtxt/parser/parse_tree-match.rb', line 272 def pen @pen end |
Instance Method Details
#pretty_print(q) ⇒ Object
282 283 284 |
# File 'lib/fbtxt/parser/parse_tree-match.rb', line 282 def pretty_print( q ) q.text( to_s ) end |
#to_s ⇒ Object
273 274 275 276 277 278 279 280 |
# File 'lib/fbtxt/parser/parse_tree-match.rb', line 273 def to_s buf = String.new buf << "(og)" if og buf << "(pen)" if pen buf << "(f)" if freekick buf << "(h)" if header buf end |