lib/active_rdf/lib/active_rdf_helpers.rb
def bool_accessor *syms
    attr_accessor(*syms)
    syms.each { |sym| alias_method "#{sym}?", sym }
    remove_method(*syms)
  end
# Adds boolean accessor to a class (e.g. person.male?)
Adds boolean accessor to a class
Adds boolean accessor to a class
def bool_accessor *syms
    attr_accessor(*syms)
    syms.each { |sym| alias_method "#{sym}?", sym }
    remove_method(*syms)
  end
def bool_accessor * syms attr_accessor ( * syms ) syms . each { | sym | alias_method "#{sym}?" , sym } remove_method ( * syms ) end
Adds boolean accessor to a class (e.g.
Adds boolean accessor to a class ( e . g .
syms