Fix super as statement
Super is a statement, a send really. Not an expression (as maybe in c++) The actual implementation will be a bit tricky, like raise, a bit of stack walking, but not impossible. Still, later
This commit is contained in:
@ -44,11 +44,6 @@ module Ruby
|
||||
"self"
|
||||
end
|
||||
end
|
||||
class SuperExpression < Constant
|
||||
def to_s(depth = 0)
|
||||
"super"
|
||||
end
|
||||
end
|
||||
class StringConstant < ValueConstant
|
||||
attr_reader :value
|
||||
def initialize(value)
|
||||
|
Reference in New Issue
Block a user