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.
-
#indention ⇒ Object
Returns the value of attribute indention.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#depth ⇒ Object
Returns the value of attribute depth
85 86 87 |
# File 'lib/constants.rb', line 85 def depth @depth end |
#indention ⇒ Object
Returns the value of attribute indention
85 86 87 |
# File 'lib/constants.rb', line 85 def indention @indention end |
#text ⇒ Object
Returns the value of attribute text
85 86 87 |
# File 'lib/constants.rb', line 85 def text @text end |
Instance Method Details
#to_s ⇒ Object
86 87 88 |
# File 'lib/constants.rb', line 86 def to_s indention + text end |