Module: MismatchInspectable

Defined in:
lib/mismatch_inspectable/version.rb,
lib/mismatch_inspectable/inspection_options.rb,
lib/mismatch_inspectable/formatter/formatter.rb,
lib/mismatch_inspectable/mismatch_inspectable.rb,
lib/mismatch_inspectable/formatter/format_builder.rb,
lib/mismatch_inspectable/formatter/hash_formatter.rb,
lib/mismatch_inspectable/formatter/array_formatter.rb

Defined Under Namespace

Modules: ClassMethods Classes: ArrayFormatter, FormatBuilder, Formatter, HashFormatter, InspectionOptions, MissingCompareMethodsError

Constant Summary collapse

VERSION =
"0.1.4".freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/mismatch_inspectable/mismatch_inspectable.rb', line 4

def options
  @options
end

Class Method Details

.included(target_class) ⇒ Object



6
7
8
# File 'lib/mismatch_inspectable/mismatch_inspectable.rb', line 6

def self.included(target_class)
  target_class.extend ClassMethods
end

Instance Method Details

#inspect_mismatch(other_klass, **options) ⇒ Object



24
25
26
27
# File 'lib/mismatch_inspectable/mismatch_inspectable.rb', line 24

def inspect_mismatch(other_klass, **options)
  @options = InspectionOptions.new(**options)
  find_mismatches(other_klass:)
end