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