Module: Hollybush

Defined in:
lib/hollybush/list.rb,
lib/hollybush/version.rb,
lib/hollybush/connectivity.rb

Defined Under Namespace

Classes: List

Constant Summary collapse

VERSION =
"0.0.2"
@@mongodb =
conn.db(uri.path.gsub(/^\//, ''))

Class Method Summary collapse

Class Method Details

.mongodbObject



16
17
18
19
20
21
22
# File 'lib/hollybush/connectivity.rb', line 16

def self.mongodb
  unless defined?(@@mongodb) and @@mongodb 
    puts "PLEASE SPECIFY A MONGODB DATABASE OBJECT. Use Hollybush.mongodb="
    return nil
  end
  @@mongodb
end

.mongodb=(mongodb) ⇒ Object



13
14
15
# File 'lib/hollybush/connectivity.rb', line 13

def self.mongodb=(mongodb)
  @@mongodb = mongodb
end