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



107
108
109
# File 'lib/constants.rb', line 107

def depth
  @depth
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



107
108
109
# File 'lib/constants.rb', line 107

def filename
  @filename
end

#indentionObject

Returns the value of attribute indention

Returns:

  • (Object)

    the current value of indention



107
108
109
# File 'lib/constants.rb', line 107

def indention
  @indention
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



107
108
109
# File 'lib/constants.rb', line 107

def index
  @index
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



107
108
109
# File 'lib/constants.rb', line 107

def text
  @text
end

Instance Method Details

#to_sObject



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

def to_s
  indention + text
end