Module: Beeps::Module

Defined in:
lib/beeps/module.rb

Class Method Summary collapse

Class Method Details

.inc_dirObject



23
24
25
# File 'lib/beeps/module.rb', line 23

def inc_dir()
  root_dir 'include'
end

.lib_dirObject



27
28
29
# File 'lib/beeps/module.rb', line 27

def lib_dir()
  root_dir 'lib'
end

.nameObject



11
12
13
# File 'lib/beeps/module.rb', line 11

def name()
  super.split('::')[-2]
end

.root_dir(path = '') ⇒ Object



19
20
21
# File 'lib/beeps/module.rb', line 19

def root_dir(path = '')
  File.expand_path "../../#{path}", __dir__
end

.versionObject



15
16
17
# File 'lib/beeps/module.rb', line 15

def version()
  open(root_dir 'VERSION') {|f| f.readline.chomp}
end