Module: Marksman::Equality
- Included in:
- Presentation, Slide, Theme
- Defined in:
- lib/marksman/equality.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
4 5 6 |
# File 'lib/marksman/equality.rb', line 4 def == (other) self.class == other.class && self.attributes == other.attributes end |
#attributes ⇒ Object
8 9 10 11 12 |
# File 'lib/marksman/equality.rb', line 8 def attributes Hash[instance_variables.map do |attribute| [attribute, instance_variable_get(attribute)] end] end |