Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/version/ext/module.rb
Instance Method Summary collapse
-
#is_versioned ⇒ Object
Automagically sets a VERSION constant in the current module according to the results of Version.current.
Instance Method Details
#is_versioned ⇒ Object
Automagically sets a VERSION constant in the current module according to the results of Version.current.
8 9 10 |
# File 'lib/version/ext/module.rb', line 8 def is_versioned const_set :VERSION, Version.current(File.dirname(caller.first)) end |