Class: MarshalParser::Formatters::AST::Renderers::LineAnnotated
- Defined in:
- lib/marshal-parser/formatters/ast/renderers/line_with_annotation.rb
Instance Attribute Summary collapse
-
#annotation ⇒ Object
readonly
Returns the value of attribute annotation.
Attributes inherited from Line
Instance Method Summary collapse
-
#initialize(string, annotation) ⇒ LineAnnotated
constructor
A new instance of LineAnnotated.
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
#annotation ⇒ Object (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 |