Module: Foobara::CommandPatternImplementation::Concerns::ResultType::ClassMethods

Defined in:
foobara-0.0.110/projects/command/src/command_pattern_implementation/concerns/result_type.rb

Instance Method Summary collapse

Instance Method Details

#raw_result_type_declarationObject



20
21
22
# File 'foobara-0.0.110/projects/command/src/command_pattern_implementation/concerns/result_type.rb', line 20

def raw_result_type_declaration
  result_type.raw_declaration_data
end

#resultObject



8
9
10
# File 'foobara-0.0.110/projects/command/src/command_pattern_implementation/concerns/result_type.rb', line 8

def result(...)
  @result_type = type_for_declaration(...)
end

#result_typeObject



12
13
14
15
16
17
18
# File 'foobara-0.0.110/projects/command/src/command_pattern_implementation/concerns/result_type.rb', line 12

def result_type
  return @result_type if defined?(@result_type)

  @result_type = if superclass < Foobara::Command
                   superclass.result_type
                 end
end