Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/types/class_type.rb
Class Method Summary collapse
- .to_ikra_type ⇒ Object
-
.to_ikra_type_obj(object) ⇒ Object
Returns the [Ikra::Types::RubyType] for this class.
Class Method Details
.to_ikra_type ⇒ Object
118 119 120 121 |
# File 'lib/types/class_type.rb', line 118 def self.to_ikra_type # TODO: should this method be defined on Class? Ikra::Types::ClassType.new(self) end |
.to_ikra_type_obj(object) ⇒ Object
Returns the [Ikra::Types::RubyType] for this class. This version of the method receives the actual object as a parameter. This is necessary for example to determine the exact type of an array (including inner type).
124 125 126 |
# File 'lib/types/class_type.rb', line 124 def self.to_ikra_type_obj(object) to_ikra_type end |