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.
416 417 418 |
# File 'lib/yadriggy/type.rb', line 416 def initialize(obj) @object = obj end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the Ruby object.
414 415 416 |
# File 'lib/yadriggy/type.rb', line 414 def object @object end |
Instance Method Details
#name ⇒ String
Obtains the name of this type.
465 466 467 |
# File 'lib/yadriggy/type.rb', line 465 def name @object.to_s end |