Sha256: ba43cd9d77842733b69f7aa30a2325198155ce503013a5e670fc3883b69164df

Contents?: true

Size: 368 Bytes

Versions: 5

Compression:

Stored size: 368 Bytes

Contents

module Roles::Generic::Role
  module InstanceMethods        
    def role_class
      self.class.role_class_name
    end  
  end
  
  module ClassMethods 
    def role_class_name
      @role_class_name          
    end

    def role_class class_constant
      const = class_constant.to_s.camelize
      @role_class_name = "#{const}".constantize
    end
  end    
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roles_generic-0.3.7 lib/roles_generic/generic/role.rb
roles_generic-0.3.6 lib/roles_generic/generic/role.rb
roles_generic-0.3.5 lib/roles_generic/generic/role.rb
roles_generic-0.3.4 lib/roles_generic/generic/role.rb
roles_generic-0.3.3 lib/roles_generic/generic/role.rb