Module: Beeps::Module
- Defined in:
- lib/beeps/module.rb
Class Method Summary collapse
Class Method Details
.inc_dir ⇒ Object
23 24 25 |
# File 'lib/beeps/module.rb', line 23 def inc_dir() root_dir 'include' end |
.lib_dir ⇒ Object
27 28 29 |
# File 'lib/beeps/module.rb', line 27 def lib_dir() root_dir 'lib' end |
.name ⇒ Object
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. "../../#{path}", __dir__ end |
.version ⇒ Object
15 16 17 |
# File 'lib/beeps/module.rb', line 15 def version() open(root_dir 'VERSION') {|f| f.readline.chomp} end |