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.



100
101
102
# File 'lib/crokus/ast.rb', line 100

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

Instance Attribute Details

#modifierObject

Returns the value of attribute modifier.



99
100
101
# File 'lib/crokus/ast.rb', line 99

def modifier
  @modifier
end

#typeObject

Returns the value of attribute type.



99
100
101
# File 'lib/crokus/ast.rb', line 99

def type
  @type
end