Class: Baba::Expr::Set
- Inherits:
-
Object
- Object
- Baba::Expr::Set
- Defined in:
- lib/baba/expr.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(object, name, value) ⇒ Set
constructor
A new instance of Set.
Constructor Details
#initialize(object, name, value) ⇒ Set
Returns a new instance of Set.
126 127 128 |
# File 'lib/baba/expr.rb', line 126 def initialize(object, name, value) @object = object; @name = name; @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
124 125 126 |
# File 'lib/baba/expr.rb', line 124 def name @name end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
124 125 126 |
# File 'lib/baba/expr.rb', line 124 def object @object end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
124 125 126 |
# File 'lib/baba/expr.rb', line 124 def value @value end |
Instance Method Details
#accept(visitor) ⇒ Object
130 131 132 |
# File 'lib/baba/expr.rb', line 130 def accept(visitor) visitor.visit_set_expr(self) end |