Class: Polar::GroupHash
- Inherits:
-
Hash
- Object
- Hash
- Polar::GroupHash
- Defined in:
- lib/polar/groups.rb
Instance Method Summary collapse
- #deny(*params) ⇒ Object
- #have(*params) ⇒ Object
-
#initialize(method) ⇒ GroupHash
constructor
A new instance of GroupHash.
Constructor Details
#initialize(method) ⇒ GroupHash
Returns a new instance of GroupHash.
58 59 60 |
# File 'lib/polar/groups.rb', line 58 def initialize(method) self[:group_name] = method.to_sym end |
Instance Method Details
#deny(*params) ⇒ Object
67 68 69 |
# File 'lib/polar/groups.rb', line 67 def deny(*params) end |
#have(*params) ⇒ Object
62 63 64 65 |
# File 'lib/polar/groups.rb', line 62 def have(*params) self[:params] = params Polar::Groups.defined_store[self[:group_name]] = self end |