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
107 108 109 |
# File 'lib/constants.rb', line 107 def depth @depth end |
#filename ⇒ Object
Returns the value of attribute filename
107 108 109 |
# File 'lib/constants.rb', line 107 def filename @filename end |
#indention ⇒ Object
Returns the value of attribute indention
107 108 109 |
# File 'lib/constants.rb', line 107 def indention @indention end |
#index ⇒ Object
Returns the value of attribute index
107 108 109 |
# File 'lib/constants.rb', line 107 def index @index end |
#text ⇒ Object
Returns the value of attribute text
107 108 109 |
# File 'lib/constants.rb', line 107 def text @text end |
Instance Method Details
#to_s ⇒ Object
108 109 110 |
# File 'lib/constants.rb', line 108 def to_s indention + text end |