lib/gamebox/lib/observable_attributes.rb
# Returns a new hash containing the attr keys and values
Returns a new hash containing the attr keys and values
Returns a new hash containing the attr keys and values
def attributes
    {}.tap do |atts|
      if @evented_attributes
        @evented_attributes.each do |name|
          atts[name] = self.send name
        end
      end
    end
  end
def attributes { } . tap do | atts | if @evented_attributes @evented_attributes . each do | name | atts [ name ] = self . send name end end end end
Returns a new hash containing the attr keys and values
Returns a new hash containing the attr keys and values