module Introspect
Constants
- VERSION
Public Class Methods
introspect(obj, command = nil, opts = nil)
click to toggle source
# File lib/introspect.rb, line 17 def self.introspect obj, command = nil, opts = nil case command when :which then Introspect::Which.which obj, opts when :contents then Introspect::Contents.contents obj, opts else raise ArgumentError, "unrecognized command: #{command}" end end
Public Instance Methods
introspect(command = nil, opts = nil)
click to toggle source
# File lib/introspect.rb, line 26 def introspect command = nil, opts = nil Introspect.introspect self, command, opts end