class Introspection::Method

Attributes

visibility[R]

Public Class Methods

new(method, visibility = :public) click to toggle source
# File lib/introspection/method.rb, line 12
def initialize(method, visibility = :public)
  @method, @visibility = method, visibility
end

Public Instance Methods

==(other) click to toggle source
# File lib/introspection/method.rb, line 16
def ==(other)
  (owner == other.owner) && (name == other.name) && (visibility == other.visibility)
end
eql?(other) click to toggle source
# File lib/introspection/method.rb, line 20
def eql?(other)
  (self.class === other) && (self == other)
end
hash() click to toggle source
# File lib/introspection/method.rb, line 24
def hash
  [owner, name, visibility].hash
end
inspect() click to toggle source
# File lib/introspection/method.rb, line 32
def inspect
  "#{owner}##{name} (#{visibility})"
end
name() click to toggle source
# File lib/introspection/method.rb, line 28
def name
  @method.name.to_sym
end