Class: Baba::Expr::Set

Inherits:
Object
  • Object
show all
Defined in:
lib/baba/expr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



124
125
126
# File 'lib/baba/expr.rb', line 124

def name
  @name
end

#objectObject (readonly)

Returns the value of attribute object.



124
125
126
# File 'lib/baba/expr.rb', line 124

def object
  @object
end

#valueObject (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