Class: Uinit::Type::Generic
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ Generic
constructor
A new instance of Generic.
- #inspect ⇒ Object
Methods inherited from Base
#==, [], from, from?, #is!, #to_s, #trace!, #type_error!
Methods included from Operators
Constructor Details
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
12 13 14 |
# File 'lib/uinit/type/generic.rb', line 12 def type @type end |
Instance Method Details
#inspect ⇒ Object
14 15 16 |
# File 'lib/uinit/type/generic.rb', line 14 def inspect "#{super}[#{type.inspect}]" end |