Class: Baba::Expr::Get
- Inherits:
-
Object
- Object
- Baba::Expr::Get
- 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.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(object, name) ⇒ Get
constructor
A new instance of Get.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
52 53 54 |
# File 'lib/baba/expr.rb', line 52 def name @name end |
#object ⇒ Object (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 |