Class: Expressir::Express::Visitor::SimpleCtx
- Inherits:
-
Object
- Object
- Expressir::Express::Visitor::SimpleCtx
- Defined in:
- lib/expressir/express/visitor.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data, name) ⇒ SimpleCtx
constructor
A new instance of SimpleCtx.
- #text ⇒ Object
Constructor Details
#initialize(data, name) ⇒ SimpleCtx
Returns a new instance of SimpleCtx.
67 68 69 70 |
# File 'lib/expressir/express/visitor.rb', line 67 def initialize(data, name) @data = data @name = name end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
65 66 67 |
# File 'lib/expressir/express/visitor.rb', line 65 def data @data end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
65 66 67 |
# File 'lib/expressir/express/visitor.rb', line 65 def name @name end |
Instance Method Details
#text ⇒ Object
72 73 74 |
# File 'lib/expressir/express/visitor.rb', line 72 def text @data.to_s end |