Class: NestedLine

Inherits:
Struct show all
Defined in:
lib/cached_nested_file_reader.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



12
13
14
# File 'lib/cached_nested_file_reader.rb', line 12

def depth
  @depth
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



12
13
14
# File 'lib/cached_nested_file_reader.rb', line 12

def text
  @text
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/cached_nested_file_reader.rb', line 13

def to_s
  text
end