Class: MethodExtensions::MethodSuper::Methods

Inherits:
Object
  • Object
show all
Defined in:
lib/method_extensions/method/super.rb

Constant Summary collapse

VISIBILITIES =
[ :public, :protected, :private ].freeze

Instance Method Summary collapse

Constructor Details

#initialize(klass_or_module, options = {}) ⇒ Methods

Returns a new instance of Methods.



76
77
78
79
80
81
# File 'lib/method_extensions/method/super.rb', line 76

def initialize(klass_or_module, options = {})
  @klass_or_module = klass_or_module
  @ancestor_name_formatter = options.fetch(:ancestor_name_formatter,
                                           default_ancestor_name_formatter)
  @exclude_trite = options.fetch(:exclude_trite, true)
end

Instance Method Details

#allObject



83
84
85
# File 'lib/method_extensions/method/super.rb', line 83

def all
  @all ||= find_all
end