Class: SportDb::Parser::RoundOutline
- Defined in:
- lib/sportdb/parser/parse_tree.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
-
#outline ⇒ Object
Returns the value of attribute outline.
Instance Method Summary collapse
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level
105 106 107 |
# File 'lib/sportdb/parser/parse_tree.rb', line 105 def level @level end |
#outline ⇒ Object
Returns the value of attribute outline
105 106 107 |
# File 'lib/sportdb/parser/parse_tree.rb', line 105 def outline @outline end |
Instance Method Details
#as_json ⇒ Object
106 107 108 109 110 |
# File 'lib/sportdb/parser/parse_tree.rb', line 106 def as_json(*) ['<RoundOutline>', { 'outline' => outline.as_json, 'level' => level.as_json, } ] end |
#pretty_print(q) ⇒ Object
112 113 114 115 116 117 |
# File 'lib/sportdb/parser/parse_tree.rb', line 112 def pretty_print( q ) q.group( 4, '<RoundOutline ', '>' ) do q.text( outline ) q.text( " level=#{level}" ) end end |