lib/scrivener.rb
# Return hash of attributes and values.
Return hash of attributes and values.
Return hash of attributes and values .
def attributes
    Hash.new.tap do |atts|
      _accessors.each do |accessor|
        att = accessor[0..-2].to_sym
        atts[att] = send(att)
      end
    end
  end
def attributes Hash . new . tap do | atts | _accessors . each do | accessor | att = accessor [ 0 .. - 2 ] . to_sym atts [ att ] = send ( att ) end end end
Return hash of attributes and values.
Return hash of attributes and values .