Class: Crokus::Casting

Inherits:
Type 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, modifier) ⇒ Casting

Returns a new instance of Casting.



96
97
98
# File 'lib/crokus/ast.rb', line 96

def initialize type,modifier
  @type,@modifier=type,modifier
end

Instance Attribute Details

#modifierObject

Returns the value of attribute modifier.



95
96
97
# File 'lib/crokus/ast.rb', line 95

def modifier
  @modifier
end

#typeObject

Returns the value of attribute type.



95
96
97
# File 'lib/crokus/ast.rb', line 95

def type
  @type
end