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