class Reek::Context::SingletonMethodContext
A context wrapper for any singleton method definition found in a syntax tree.
Public Instance Methods
Source
# File lib/reek/context/singleton_method_context.rb, line 28 def apply_current_visibility(current_visibility) super if defined_as_instance_method? end
Calls superclass method
Reek::Context::MethodContext#apply_current_visibility
Source
# File lib/reek/context/singleton_method_context.rb, line 24 def defined_as_instance_method? type == :def end
Was this singleton method defined with an instance method-like syntax?
Source
# File lib/reek/context/singleton_method_context.rb, line 15 def instance_method? false end
Source
# File lib/reek/context/singleton_method_context.rb, line 19 def module_function? false end
Source
# File lib/reek/context/singleton_method_context.rb, line 11 def singleton_method? true end