Class: Scopedog::Directives::ParanoidDirective
- Defined in:
- lib/scopedog/directives/paranoid_directive.rb
Instance Method Summary collapse
Methods inherited from Base
abstract_class?, #call, directive_name, inherited
Instance Method Details
#after_parse ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/scopedog/directives/paranoid_directive.rb', line 4 def after_parse parser.state.scope = :class name = tag.name add_method! "only_#{name}" add_method! "with_#{name}" add_method! "without_#{name}" end |