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



109
110
111
# File 'lib/constants.rb', line 109

def depth
  @depth
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



109
110
111
# File 'lib/constants.rb', line 109

def filename
  @filename
end

#indentionObject

Returns the value of attribute indention

Returns:

  • (Object)

    the current value of indention



109
110
111
# File 'lib/constants.rb', line 109

def indention
  @indention
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



109
110
111
# File 'lib/constants.rb', line 109

def index
  @index
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



109
110
111
# File 'lib/constants.rb', line 109

def text
  @text
end

Instance Method Details

#to_sObject



110
111
112
# File 'lib/constants.rb', line 110

def to_s
  indention + text
end