Class: Strict::Methods::VerifiableMethod::UnknownParameterError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parameter_name:) ⇒ UnknownParameterError

Returns a new instance of UnknownParameterError.



13
14
15
16
17
# File 'lib/strict/methods/verifiable_method.rb', line 13

def initialize(parameter_name:)
  super(message_from(parameter_name: parameter_name))

  @parameter_name = parameter_name
end

Instance Attribute Details

#parameter_nameObject (readonly)

Returns the value of attribute parameter_name.



11
12
13
# File 'lib/strict/methods/verifiable_method.rb', line 11

def parameter_name
  @parameter_name
end