class Yadriggy::ResultType

Type of values returned by a method.

Attributes

method_def[R]

@return [Parameters] The definition of the method returning

a value of this type.

Public Class Methods

new(type, method_def) click to toggle source

@param [Type] type a Type object that this role is added to. @param [Parameters] method_def the method.

Calls superclass method Yadriggy::OptionalRole::new
# File lib/yadriggy/type.rb, line 715
def initialize(type, method_def)
  super(type)
  @method_def = method_def
end