Class: Yadriggy::ResultType
- Inherits:
-
OptionalRole
- Object
- Type
- OptionalRole
- Yadriggy::ResultType
- Defined in:
- lib/yadriggy/type.rb
Overview
Type of values returned by a method.
Instance Attribute Summary collapse
-
#method_def ⇒ Parameters
readonly
The definition of the method returning a value of this type.
Instance Method Summary collapse
-
#initialize(type, method_def) ⇒ ResultType
constructor
A new instance of ResultType.
Methods inherited from OptionalRole
Methods inherited from Type
#!=, #<=, #copy, #eql?, error_found!, #exact_type, #has_role?, #name, role, #supertype
Constructor Details
#initialize(type, method_def) ⇒ ResultType
Returns a new instance of ResultType.
728 729 730 731 |
# File 'lib/yadriggy/type.rb', line 728 def initialize(type, method_def) super(type) @method_def = method_def end |
Instance Attribute Details
#method_def ⇒ Parameters (readonly)
Returns The definition of the method returning a value of this type.
724 725 726 |
# File 'lib/yadriggy/type.rb', line 724 def method_def @method_def end |