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