Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/version/ext/module.rb

Instance Method Summary collapse

Instance Method Details

#is_versionedObject

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