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