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.



103
104
105
# File 'lib/crokus/ast.rb', line 103

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

Instance Attribute Details

#exprObject

Returns the value of attribute expr.



102
103
104
# File 'lib/crokus/ast.rb', line 102

def expr
  @expr
end

#typeObject

Returns the value of attribute type.



102
103
104
# File 'lib/crokus/ast.rb', line 102

def type
  @type
end