Class: Concern
Constant Summary collapse
- VERSION =
File.read(File.join(File.dirname(__FILE__), '..', 'VERSION'))
Instance Attribute Summary collapse
-
#concerned ⇒ Object
Returns the value of attribute concerned.
Class Method Summary collapse
Instance Attribute Details
#concerned ⇒ Object
Returns the value of attribute concerned.
4 5 6 |
# File 'lib/concern.rb', line 4 def concerned @concerned end |
Class Method Details
.classify(lib) ⇒ Object
6 7 8 |
# File 'lib/concern.rb', line 6 def self.classify(lib) lib.split('/').map{|part| part.gsub(/(?:^|_)(.)/){ $1.upcase } }.join('::') end |