Class: RbTags::Formats::Extended::Method
- Includes:
- Instance
- Defined in:
- lib/rbtags/formats/extended/method.rb
Instance Method Summary collapse
-
#initialize(klass, object, method, singleton, trace) ⇒ Method
constructor
A new instance of Method.
- #reject? ⇒ Boolean
- #to_s ⇒ Object
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
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_s ⇒ Object
17 18 19 |
# File 'lib/rbtags/formats/extended/method.rb', line 17 def to_s line(qualified) end |