class Scopedog::Directives::ParanoidDirective

Public Instance Methods

after_parse() click to toggle source

@!override YARD::Tags::Directive#after_parse

# 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

Protected Instance Methods

create_method_object(name) click to toggle source

@!override Scopedog::BaseDirective#create_method_object

# File lib/scopedog/directives/paranoid_directive.rb, line 16
def create_method_object(name)
  super.tap do |obj|
    obj.group = 'Scopes'
    obj.add_tag YARD::Tags::Tag.new(:scoping, '', nil, name)
  end
end