lib/coactive/context.rb in coactive-0.2.0 vs lib/coactive/context.rb in coactive-0.2.1

- old
+ new

@@ -24,13 +24,12 @@ def to_h @_data end def to_s - attrs = @_data.map { |k, v| "#{k}=#{v.inspect}" }.join(', ') + attrs = @_data.map { |k, v| "#{k}=#{v.to_s.truncate(300)}" }.join(', ') "#<#{self.class} #{attrs}>" end - alias :inspect :to_s def define_accessors!(keys) Array(keys).each do |key| define_singleton_method key do @_data[key]