Module: Cuprum::Collections
- Defined in:
- lib/cuprum/collections.rb,
lib/cuprum/collections/basic.rb,
lib/cuprum/collections/query.rb,
lib/cuprum/collections/rspec.rb,
lib/cuprum/collections/errors.rb,
lib/cuprum/collections/command.rb,
lib/cuprum/collections/queries.rb,
lib/cuprum/collections/version.rb,
lib/cuprum/collections/commands.rb,
lib/cuprum/collections/relation.rb,
lib/cuprum/collections/resource.rb,
lib/cuprum/collections/collection.rb,
lib/cuprum/collections/repository.rb,
lib/cuprum/collections/association.rb,
lib/cuprum/collections/constraints.rb,
lib/cuprum/collections/associations.rb,
lib/cuprum/collections/query_builder.rb
Overview
A data abstraction layer based on the Cuprum library.
Defined Under Namespace
Modules: Associations, Basic, Commands, Constraints, Errors, Queries, RSpec, Version Classes: Association, Collection, Command, Query, QueryBuilder, Relation, Repository, Resource
Constant Summary collapse
- VERSION =
Returns the current version of the gem.
Version.to_gem_version
Class Method Summary collapse
-
.gem_path ⇒ String
The absolute path to the gem directory.
-
.version ⇒ String
The current version of the gem.
Class Method Details
.gem_path ⇒ String
Returns the absolute path to the gem directory.
20 21 22 23 24 25 |
# File 'lib/cuprum/collections.rb', line 20 def self.gem_path sep = File::SEPARATOR pattern = /#{sep}lib#{sep}cuprum#{sep}?\z/ __dir__.sub(pattern, '') end |
.version ⇒ String
Returns The current version of the gem.
28 29 30 |
# File 'lib/cuprum/collections.rb', line 28 def self.version VERSION end |