Class: Strict::ImplementationDoesNotConformError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interface:, receiver:, missing_methods:, invalid_method_definitions:) ⇒ ImplementationDoesNotConformError

rubocop:disable Metrics/MethodLength



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

def initialize(interface:, receiver:, missing_methods:, invalid_method_definitions:) # rubocop:disable Metrics/MethodLength
  super(
    message_from(
      interface: interface,
      receiver: receiver,
      missing_methods: missing_methods,
      invalid_method_definitions: invalid_method_definitions
    )
  )

  @interface = interface
  @receiver = receiver
  @missing_methods = missing_methods
  @invalid_method_definitions = invalid_method_definitions
end

Instance Attribute Details

#interfaceObject (readonly)

Returns the value of attribute interface.



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

def interface
  @interface
end

#invalid_method_definitionsObject (readonly)

Returns the value of attribute invalid_method_definitions.



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

def invalid_method_definitions
  @invalid_method_definitions
end

#missing_methodsObject (readonly)

Returns the value of attribute missing_methods.



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

def missing_methods
  @missing_methods
end

#receiverObject (readonly)

Returns the value of attribute receiver.



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

def receiver
  @receiver
end