Module: RubySketch::Module
- Defined in:
- lib/rubysketch/module.rb
Class Method Summary collapse
Class Method Details
.name ⇒ Object
8 9 10 |
# File 'lib/rubysketch/module.rb', line 8 def name() super.split('::')[-2] end |
.root_dir(path = '') ⇒ Object
16 17 18 |
# File 'lib/rubysketch/module.rb', line 16 def root_dir(path = '') File. "../../#{path}", __dir__ end |
.version ⇒ Object
12 13 14 |
# File 'lib/rubysketch/module.rb', line 12 def version() open(root_dir 'VERSION') {|f| f.readline.chomp} end |