Module: Beeps::Extension
- Defined in:
- lib/beeps/extension.rb
Class Method Summary collapse
- .ext_dir ⇒ Object
- .inc_dir ⇒ Object
- .lib_dir ⇒ Object
- .name ⇒ Object
- .root_dir(path = '') ⇒ Object
- .version ⇒ Object
Class Method Details
.ext_dir ⇒ Object
28 29 30 |
# File 'lib/beeps/extension.rb', line 28 def ext_dir() root_dir 'ext' end |
.inc_dir ⇒ Object
20 21 22 |
# File 'lib/beeps/extension.rb', line 20 def inc_dir() root_dir 'include' end |
.lib_dir ⇒ Object
24 25 26 |
# File 'lib/beeps/extension.rb', line 24 def lib_dir() root_dir 'lib' end |
.name ⇒ Object
8 9 10 |
# File 'lib/beeps/extension.rb', line 8 def name() super.split('::')[-2] end |
.root_dir(path = '') ⇒ Object
16 17 18 |
# File 'lib/beeps/extension.rb', line 16 def root_dir(path = '') File. "../../#{path}", __dir__ end |
.version ⇒ Object
12 13 14 |
# File 'lib/beeps/extension.rb', line 12 def version() File.read(root_dir 'VERSION')[/[\d\.]+/] end |