module Reflekt::SingletonClassMethods

Publicly accessible class methods in the class that Reflekt is prepended to.

Public Instance Methods

reflekt_skip(method) click to toggle source

Skip a method.

@note

Class variables cascade to child classes.
So a reflekt_skip on the parent class will persist to the child class.

@param method [Symbol] The method name.

# File lib/reflekt.rb, line 267
def reflekt_skip(method)
  @@reflekt_skipped_methods.add(method)
end
reflekt_skipped?(method) click to toggle source
# File lib/reflekt.rb, line 271
def reflekt_skipped?(method)
  return true if @@reflekt_skipped_methods.include?(method)
  false
end