Class: MarshalParser::Formatters::AST::Renderers::LineAnnotated

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

Instance Attribute Summary collapse

Attributes inherited from Line

#string

Instance Method Summary collapse

Constructor Details

#initialize(string, annotation) ⇒ LineAnnotated

Returns a new instance of LineAnnotated.



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

def initialize(string, annotation)
  super(string)
  @annotation = annotation
end

Instance Attribute Details

#annotationObject (readonly)

Returns the value of attribute annotation.



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

def annotation
  @annotation
end