Class: RbTags::Formats::Extended::Method

Inherits:
Object
  • Object
show all
Includes:
Instance
Defined in:
lib/rbtags/formats/extended/method.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass, object, method, singleton, trace) ⇒ Method

Returns a new instance of Method.



6
7
8
9
# File 'lib/rbtags/formats/extended/method.rb', line 6

def initialize(klass, object, method, singleton, trace)
  @klass, @object, @method, @singleton = klass, object, method, singleton
  super trace
end

Instance Method Details

#reject?Boolean

Returns:

  • (Boolean)


11
12
13
14
15
# File 'lib/rbtags/formats/extended/method.rb', line 11

def reject?
  not (not @singleton and @method == :initialize) and
  ((class << (@singleton ? @klass : @object); self; end).private_method_defined?(@method) or
   super)
end

#to_sObject



17
18
19
# File 'lib/rbtags/formats/extended/method.rb', line 17

def to_s
  line(qualified)
end