Module: Kirei::Domain::ValueObject
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/kirei/domain/value_object.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#class ⇒ Object
rubocop:disable all.
Instance Method Details
#==(other) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/kirei/domain/value_object.rb', line 14 def ==(other) return false unless instance_of?(other.class) instance_variables.all? do |var| instance_variable_get(var) == other.instance_variable_get(var) end end |
#class ⇒ Object
rubocop:disable all
11 |
# File 'lib/kirei/domain/value_object.rb', line 11 def class; super; end |