Class: Polygon::Database::Connection
- Inherits:
-
Alf::Adapter::Connection
- Object
- Alf::Adapter::Connection
- Polygon::Database::Connection
- Defined in:
- lib/polygon/database.rb
Overview
class Adapter
Instance Method Summary collapse
-
#cog(plan, expr) ⇒ Object
Returns a cog for ‘name`.
- #default_options ⇒ Object
- #knows?(name) ⇒ Boolean
Instance Method Details
#cog(plan, expr) ⇒ Object
Returns a cog for ‘name`
31 32 33 34 35 |
# File 'lib/polygon/database.rb', line 31 def cog(plan, expr) name = expr.name raise Alf::NoSuchRelvarError, "Unable to find a file for #{name}" unless knows?(name) Entries.new(folder, ) end |
#default_options ⇒ Object
22 23 24 |
# File 'lib/polygon/database.rb', line 22 def { :extensions => ["yml", "md"] } end |
#knows?(name) ⇒ Boolean
26 27 28 |
# File 'lib/polygon/database.rb', line 26 def knows?(name) name == :entries end |