Class: Rucoa::Types::MethodType

Inherits:
Object
  • Object
show all
Defined in:
lib/rucoa/types/method_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parameters_string:, return_type:) ⇒ MethodType

Returns a new instance of MethodType.

Parameters:

  • parameters_string (String)
  • return_type (String)


14
15
16
17
18
19
20
# File 'lib/rucoa/types/method_type.rb', line 14

def initialize(
  parameters_string:,
  return_type:
)
  @parameters_string = parameters_string
  @return_type = return_type
end

Instance Attribute Details

#parameters_stringString (readonly)

Returns:

  • (String)


7
8
9
# File 'lib/rucoa/types/method_type.rb', line 7

def parameters_string
  @parameters_string
end

#return_typeString (readonly)

Returns:

  • (String)


10
11
12
# File 'lib/rucoa/types/method_type.rb', line 10

def return_type
  @return_type
end