Class: Yadriggy::InstanceType
Overview
Type of a particular Ruby object.
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
The Ruby object.
Instance Method Summary collapse
-
#initialize(obj) ⇒ InstanceType
constructor
A new instance of InstanceType.
-
#name ⇒ String
Obtains the name of this type.
-
#supertype ⇒ RubyClass
The RubyClass for this class.
Methods inherited from Type
#!=, #copy, #eql?, error_found!, #has_role?, role
Constructor Details
#initialize(obj) ⇒ InstanceType
Returns a new instance of InstanceType.
418 419 420 |
# File 'lib/yadriggy/type.rb', line 418 def initialize(obj) @object = obj end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the Ruby object.
416 417 418 |
# File 'lib/yadriggy/type.rb', line 416 def object @object end |
Instance Method Details
#name ⇒ String
Obtains the name of this type.
467 468 469 |
# File 'lib/yadriggy/type.rb', line 467 def name @object.to_s end |