module RubyWho::Adapter

Public Instance Methods

who0?(filter = nil) click to toggle source
# File lib/rubywho.rb, line 36
def who0?(filter = nil)
  who?(filter, 0)
end
who1?(filter = nil) click to toggle source
# File lib/rubywho.rb, line 40
def who1?(filter = nil)
  who?(filter, 1)
end
who?(filter = nil, level = nil, kind = nil) click to toggle source
# File lib/rubywho.rb, line 20
def who?(filter = nil, level = nil, kind = nil)
  who_io?($stdout, filter, level, kind)
end
who_i?(filter = nil, level = nil)
Alias for: who_instance?
who_instance?(filter = nil, level = nil) click to toggle source
# File lib/rubywho.rb, line 30
def who_instance?(filter = nil, level = nil)
  who?(filter, level, :instance)
end
Also aliased as: who_i?
who_io?(io, filter = nil, level = nil, kind = nil) click to toggle source
# File lib/rubywho.rb, line 9
def who_io?(io, filter = nil, level = nil, kind = nil)
  tap do |obj|
    if (level.nil? || level > 0)
      io.puts "== #{obj.inspect}.who? =="
      RubyWho.new(obj, io, filter, kind).display(level)
    else
      io.puts "#{obj.inspect} #: #{RubyWho.new(obj, io, filter, kind).obj_str}"
    end
  end
end
who_s?(filter = nil, level = nil)
Alias for: who_singleton?
who_singleton?(filter = nil, level = nil) click to toggle source
# File lib/rubywho.rb, line 24
def who_singleton?(filter = nil, level = nil)
  who?(filter, level, :singleton)
end
Also aliased as: who_s?