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

+ (Object) default_item

Returns the value of attribute default_item



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

def default_item
  @default_item
end

+ (Object) plugins_dir

Returns the value of attribute plugins_dir



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

def plugins_dir
  @plugins_dir
end

+ (Object) vim

Returns the value of attribute vim



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

def vim
  @vim
end

Class Method Details

+ (Object) item(name = nil)



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

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

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



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