Module: Vimdb

Defined in:
lib/vimdb.rb,
lib/vimdb/db.rb,
lib/vimdb/user.rb,
lib/vimdb/item.rb,
lib/vimdb/version.rb

Defined Under Namespace

Classes: Commands, DB, Item, Keys, Options, Runner, User

Constant Summary

VERSION =
'0.5.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_itemObject

Returns the value of attribute default_item



7
8
9
# File 'lib/vimdb.rb', line 7

def default_item
  @default_item
end

.plugins_dirObject

Returns the value of attribute plugins_dir



7
8
9
# File 'lib/vimdb.rb', line 7

def plugins_dir
  @plugins_dir
end

.vimObject

Returns the value of attribute vim



7
8
9
# File 'lib/vimdb.rb', line 7

def vim
  @vim
end

Class Method Details

.item(name = nil) ⇒ Object



16
17
18
# File 'lib/vimdb.rb', line 16

def self.item(name = nil)
  @item ||= Item.instance(name || default_item)
end

.user(item_name = nil, db = DB.new) ⇒ Object



12
13
14
# File 'lib/vimdb.rb', line 12

def self.user(item_name = nil, db = DB.new)
  @user ||= User.new(item(item_name), db)
end