Class: YaAcl::Role
- Inherits:
-
Object
- Object
- YaAcl::Role
- Defined in:
- lib/ya_acl/role.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Role
constructor
A new instance of Role.
- #to_s ⇒ Object
Constructor Details
#initialize(name, options = {}) ⇒ Role
Returns a new instance of Role.
4 5 6 7 |
# File 'lib/ya_acl/role.rb', line 4 def initialize(name, = {}) @name = name.to_sym @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ya_acl/role.rb', line 3 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/ya_acl/role.rb', line 3 def @options end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/ya_acl/role.rb', line 9 def to_s self.name end |