Sha256: 0a31769656ede6cf6fbba84ac15ed606417b54fc6a37970e8aaa5e071f957ce2

Contents?: true

Size: 275 Bytes

Versions: 20

Compression:

Stored size: 275 Bytes

Contents

# Default ActiveRDF error
class ActiveRdfError < StandardError
end

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
activerdf-1.3.1 lib/active_rdf_helpers.rb
activerdf-1.2.1 lib/active_rdf_helpers.rb
activerdf-1.2.2 lib/active_rdf_helpers.rb
activerdf-1.1 lib/active_rdf_helpers.rb
activerdf-1.2.3 lib/active_rdf_helpers.rb
activerdf-1.2 lib/active_rdf_helpers.rb
activerdf-1.6.11 lib/active_rdf_helpers.rb
activerdf-1.6.2 lib/active_rdf_helpers.rb
activerdf-1.6.4 lib/active_rdf_helpers.rb
activerdf-1.6.5 lib/active_rdf_helpers.rb
activerdf-1.6.6 lib/active_rdf_helpers.rb
activerdf-1.6.8 lib/active_rdf_helpers.rb
activerdf-1.6.3 lib/active_rdf_helpers.rb
activerdf-1.3 lib/active_rdf_helpers.rb
activerdf-1.4 lib/active_rdf_helpers.rb
activerdf-1.5 lib/active_rdf_helpers.rb
activerdf-1.6.1 lib/active_rdf_helpers.rb
activerdf-1.6.10 lib/active_rdf_helpers.rb
activerdf-1.6.9 lib/active_rdf_helpers.rb
activerdf-1.6 lib/active_rdf_helpers.rb