Class: MarshalParser::Formatters::AST::Renderers::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/marshal-parser/formatters/ast/renderers/line.rb

Direct Known Subclasses

LineAnnotated

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ Line

Returns a new instance of Line.



10
11
12
# File 'lib/marshal-parser/formatters/ast/renderers/line.rb', line 10

def initialize(string)
  @string = string
end

Instance Attribute Details

#stringObject (readonly)

Returns the value of attribute string.



8
9
10
# File 'lib/marshal-parser/formatters/ast/renderers/line.rb', line 8

def string
  @string
end