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



58
59
60
# File 'lib/constants.rb', line 58

def depth
  @depth
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



58
59
60
# File 'lib/constants.rb', line 58

def text
  @text
end

Instance Method Details

#to_sObject



59
60
61
# File 'lib/constants.rb', line 59

def to_s
  text
end