lib/equalizer.rb in equalizer-0.0.5 vs lib/equalizer.rb in equalizer-0.0.7

- old
+ new

@@ -1,12 +1,9 @@ # encoding: utf-8 -require 'adamantium' - # Define equality, equivalence and inspection methods class Equalizer < Module - include Adamantium # Initialize an Equalizer with the given keys # # Will use the keys with which it is initialized to define #cmp?, # #hash, and #inspect @@ -18,9 +15,10 @@ # @api private def initialize(*keys) @keys = keys define_methods include_comparison_methods + freeze end private # Define the equalizer methods based on #keys