class Laplus::Helper::MethodHelper

Attributes

_method[R]

Public Class Methods

new(_method) click to toggle source
# File lib/laplus/helper/method_helper.rb, line 6
def initialize(_method)
  @_method = _method
end

Public Instance Methods

alias?() click to toggle source
# File lib/laplus/helper/method_helper.rb, line 14
def alias?
  _method.original_name != _method.name
end
owner_singleton?() click to toggle source
# File lib/laplus/helper/method_helper.rb, line 10
def owner_singleton?
  _method.owner.singleton_class?
end
singleton_method_of_module?() click to toggle source
# File lib/laplus/helper/method_helper.rb, line 18
def singleton_method_of_module?
  owner_singleton? && _method.receiver.kind_of?(Module)
end
super_methods() click to toggle source
# File lib/laplus/helper/method_helper.rb, line 22
def super_methods
  _super_methods = [_method]
  while super_method = _super_methods.last.super_method
    _super_methods << super_method
  end
  _super_methods.reverse
end