Module: VER::Optioned
- Defined in:
- lib/ver/options.rb
Overview
extend your class with this
Defined Under Namespace
Modules: SingletonMethods
Class Method Summary collapse
Class Method Details
.included(into) ⇒ Object
187 188 189 190 191 192 193 194 195 |
# File 'lib/ver/options.rb', line 187 def self.included(into) into.extend(SingletonMethods) snaked = into.name.split('::').last snaked = snaked.gsub(/\B[A-Z][^A-Z]/, '_\&').downcase.gsub(' ', '_') = VER..sub(snaked) into.instance_variable_set(:@options, ) end |