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.
68 69 70 71 |
# File 'lib/expressir/express/visitor.rb', line 68 def initialize(data,name) @data = data @name = name end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
67 68 69 |
# File 'lib/expressir/express/visitor.rb', line 67 def data @data end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
66 67 68 |
# File 'lib/expressir/express/visitor.rb', line 66 def name @name end |
Instance Method Details
#text ⇒ Object
73 74 75 |
# File 'lib/expressir/express/visitor.rb', line 73 def text @data.to_s end |