Class: Strict::MethodDefinitionError

Inherits:
Error
  • Object
show all
Defined in:
lib/strict/method_definition_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(verifiable_method:, missing_parameters:, additional_parameters:) ⇒ MethodDefinitionError

Returns a new instance of MethodDefinitionError.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/strict/method_definition_error.rb', line 7

def initialize(verifiable_method:, missing_parameters:, additional_parameters:)
  super(
    message_from(
      verifiable_method: verifiable_method,
      missing_parameters: missing_parameters,
      additional_parameters: additional_parameters
    )
  )

  @verifiable_method = verifiable_method
  @missing_parameters = missing_parameters
  @additional_parameters = additional_parameters
end

Instance Attribute Details

#additional_parametersObject (readonly)

Returns the value of attribute additional_parameters.



5
6
7
# File 'lib/strict/method_definition_error.rb', line 5

def additional_parameters
  @additional_parameters
end

#missing_parametersObject (readonly)

Returns the value of attribute missing_parameters.



5
6
7
# File 'lib/strict/method_definition_error.rb', line 5

def missing_parameters
  @missing_parameters
end

#verifiable_methodObject (readonly)

Returns the value of attribute verifiable_method.



5
6
7
# File 'lib/strict/method_definition_error.rb', line 5

def verifiable_method
  @verifiable_method
end