Module: Unveil::ClassMethods
- Defined in:
- lib/unveil.rb
Instance Method Summary collapse
Instance Method Details
#unveil(*args) ⇒ Object
10 11 12 13 |
# File 'lib/unveil.rb', line 10 def unveil(*args) name = args[0].is_a?(Symbol) ? args.shift : :default self.unveil_scopes[name] = args[0] || {} end |
#unveil_scopes ⇒ Object
15 16 17 |
# File 'lib/unveil.rb', line 15 def unveil_scopes @unveil_scopes ||= {:default => {}} end |