Class: Baba::Expr::Super

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keyword, method) ⇒ Super

Returns a new instance of Super.



114
115
116
# File 'lib/baba/expr.rb', line 114

def initialize(keyword, method)
  @keyword = keyword; @method = method
end

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



112
113
114
# File 'lib/baba/expr.rb', line 112

def keyword
  @keyword
end

#methodObject (readonly)

Returns the value of attribute method.



112
113
114
# File 'lib/baba/expr.rb', line 112

def method
  @method
end

Instance Method Details

#accept(visitor) ⇒ Object



118
119
120
# File 'lib/baba/expr.rb', line 118

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