class Scopedog::Directives::ScopingDirective

Public Instance Methods

after_parse() click to toggle source

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

# File lib/scopedog/directives/scoping_directive.rb, line 4
def after_parse
  parser.state.scope = :class
  add_method!
end

Protected Instance Methods

create_method_object(name) click to toggle source

@!override Scopedog::BaseDirective#create_method_object

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