Class: Literal::Success::Generic
- Inherits:
-
Object
- Object
- Literal::Success::Generic
- Includes:
- Type
- Defined in:
- lib/literal/success.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #===(object) ⇒ Object
-
#initialize(type) ⇒ Generic
constructor
A new instance of Generic.
- #inspect ⇒ Object
Methods included from Type
Constructor Details
#initialize(type) ⇒ Generic
Returns a new instance of Generic.
7 8 9 10 |
# File 'lib/literal/success.rb', line 7 def initialize(type) @type = type freeze end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
12 13 14 |
# File 'lib/literal/success.rb', line 12 def type @type end |