Class: Crokus::CastedExpr

Inherits:
Type
  • Object
show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Type

#name, #precisions

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

Constructor Details

#initialize(type, expr) ⇒ CastedExpr

Returns a new instance of CastedExpr.



107
108
109
# File 'lib/crokus/ast.rb', line 107

def initialize type,expr
  @type,@expr=type,expr
end

Instance Attribute Details

#exprObject

Returns the value of attribute expr.



106
107
108
# File 'lib/crokus/ast.rb', line 106

def expr
  @expr
end

#typeObject

Returns the value of attribute type.



106
107
108
# File 'lib/crokus/ast.rb', line 106

def type
  @type
end