Class: Baba::Expr::Get

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, name) ⇒ Get

Returns a new instance of Get.



54
55
56
# File 'lib/baba/expr.rb', line 54

def initialize(object, name)
  @object = object; @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



52
53
54
# File 'lib/baba/expr.rb', line 52

def name
  @name
end

#objectObject (readonly)

Returns the value of attribute object.



52
53
54
# File 'lib/baba/expr.rb', line 52

def object
  @object
end

Instance Method Details

#accept(visitor) ⇒ Object



58
59
60
# File 'lib/baba/expr.rb', line 58

def accept(visitor)
  visitor.visit_get_expr(self)
end