class YARD::Tags::ScopeDirective
@since 0.7.0
def method2; end
# Documentation for method2
def method1; end
# Documentation for method1
# @!scope class
@example Modifying the scope of a set of methods
cattr_accessor :subclasses
# @!scope class
@example Modifying the scope of a DSL method
to all future objects in the namespace.
it is applied only to that object. Otherwise, it applies the scope
directive is defined on a docstring attached to an object definition,
Modifies the current parsing scope (class or instance). If this
def call
def call if %w(class instance module).include?(tag.text) if object.is_a?(CodeObjects::MethodObject) object.scope = tag.text.to_sym elsif handler && !inside_directive? handler.scope = tag.text.to_sym else parser.state.scope = tag.text.to_sym end end end