Class: NestedLine
Overview
a struct to hold the data for a single line
Instance Attribute Summary collapse
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#indention ⇒ Object
Returns the value of attribute indention.
-
#index ⇒ Object
Returns the value of attribute index.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#depth ⇒ Object
Returns the value of attribute depth
109 110 111 |
# File 'lib/constants.rb', line 109 def depth @depth end |
#filename ⇒ Object
Returns the value of attribute filename
109 110 111 |
# File 'lib/constants.rb', line 109 def filename @filename end |
#indention ⇒ Object
Returns the value of attribute indention
109 110 111 |
# File 'lib/constants.rb', line 109 def indention @indention end |
#index ⇒ Object
Returns the value of attribute index
109 110 111 |
# File 'lib/constants.rb', line 109 def index @index end |
#text ⇒ Object
Returns the value of attribute text
109 110 111 |
# File 'lib/constants.rb', line 109 def text @text end |
Instance Method Details
#to_s ⇒ Object
110 111 112 |
# File 'lib/constants.rb', line 110 def to_s indention + text end |