Class: Concern

Inherits:
Object show all
Defined in:
lib/concern.rb

Constant Summary collapse

VERSION =
File.read(File.join(File.dirname(__FILE__), '..', 'VERSION'))

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#concernedObject

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