Class: NestedLine

Inherits:
Struct show all
Defined in:
lib/constants.rb

Overview

a struct to hold the data for a single line

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#depthObject

Returns the value of attribute depth

Returns:

  • (Object)

    the current value of depth



85
86
87
# File 'lib/constants.rb', line 85

def depth
  @depth
end

#indentionObject

Returns the value of attribute indention

Returns:

  • (Object)

    the current value of indention



85
86
87
# File 'lib/constants.rb', line 85

def indention
  @indention
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



85
86
87
# File 'lib/constants.rb', line 85

def text
  @text
end

Instance Method Details

#to_sObject



86
87
88
# File 'lib/constants.rb', line 86

def to_s
  indention + text
end