Sha256: ccd7a918c5c43ee4c282fd23fb3adc2bfa7ac3ed13d6550f4d5012d30ceaf4a6
Contents?: true
Size: 1.82 KB
Versions: 3
Compression:
Stored size: 1.82 KB
Contents
require 'method_info/option_handler' module MethodInfo module ObjectMethod # Provides information about an object's methods. # Options: # :format (default: nil) # - :string returns a string representation # - :array returns an array representation # - anything else prints out a string representation # :ancestors_to_show (default: []) (Overrules the hiding of any ancestors as specified # by the :ancestors_to_exclude option) # :ancestors_to_exclude (default: []) (If a class is excluded, all modules included # under it are excluded as well, an ancestor specified in # :ancestors_to_show will be shown regardless of the this value) # :method_missing (default: false) # :public_methods (default: true) # :protected_methods (default: false) # :private_methods (default: false) # :singleton_methods (default: true) # :include_names_of_excluded_ancestors (default: true) # :include_names_of_methodless_ancestors (default: true) # :enable_colors (default: false) # :class_color Set colour for a line printing out a class (only used when :enable_colors is true) # :module_color Set colour for a line printing out a module (only used when :enable_colors is true) # :message_color Set colour for a line with a message (only used when :enable_colors is true) # :methods_color Set colour for a line with methods (only used when :enable_colors is true) # :punctuation_color Set colour for punctuation (only used when :enable_colors is true) # :match Shows only those methods that match this option. It's value can be either a string or a regexp (default: nil) def method_info(options = {}) OptionHandler.handle(self, options) end end end class Object include MethodInfo::ObjectMethod end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
method_info-0.1.11 | lib/method_info/object_method.rb |
method_info-0.1.10 | lib/method_info/object_method.rb |
method_info-0.1.9 | lib/method_info/object_method.rb |