Sha256: 0efecc36f91ed56eb6d625e78796380101a4a7fb49fd7622ff21e3feb10b1b12

Contents?: true

Size: 1.79 KB

Versions: 11

Compression:

Stored size: 1.79 KB

Contents

module Looksee
  class Help
    def inspect
      <<-EOS.gsub(/^ *\|/, '')
        |== Looksee Quick Reference
        |
        |  object.ls(*specifiers)  or  Looksee[object, *specifiers]
        |    Print the methods of \`object\'.
        |
        |    Available specifiers:
        |
        |      :public     :private    :overridden
        |      :protected  :undefined
        |        Print methods with these visibilities.
        |
        |      :nopublic     :noprivate    :nooverridden
        |      :noprotected  :noundefined
        |        Do not print methods with these visibilities.
        |
        |      "string"
        |        Print methods containing this string.
        |
        |      /regexp/
        |        Print methods matching this regexp.
        |
        |    Styles:
        |
        |      #{Looksee.styles[:module] % 'Module'}
        |      #{Looksee.styles[:public] % 'public'}     }
        |      #{Looksee.styles[:protected] % 'protected'}  } like a traffic light!
        |      #{Looksee.styles[:private] % 'private'}    }
        |      #{Looksee.styles[:undefined] % 'undefined'}  ] like a ghost!
        |      #{Looksee.styles[:overridden] % 'overridden'} ] like a shadow!
        |
        |      Customize with Looksee.styles:
        |
        |        Looksee.styles = {
        |          :module => '**%s**',
        |          :private => '(%s)',
        |          ...
        |        }
        |
        |  object.ls.edit(method)
        |
        |    Jump to the source of the given method. Set your editor
        |    with Looksee.editor or the LOOKSEE_EDITOR environment
        |    variable. "%f" expands to the file name, "%l" to the line
        |    number. Example:
        |
        |    Looksee.editor = "emacs -nw +%f %l"
      EOS
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
looksee-3.1.1 lib/looksee/help.rb
looksee-3.1.0-universal-java-1.8 lib/looksee/help.rb
looksee-3.1.0 lib/looksee/help.rb
looksee-3.0.1-universal-java-1.8 lib/looksee/help.rb
looksee-3.0.1 lib/looksee/help.rb
looksee-3.0.0-universal-java-1.8 lib/looksee/help.rb
looksee-3.0.0 lib/looksee/help.rb
looksee-2.1.1-universal-java-1.6 lib/looksee/help.rb
looksee-2.1.1 lib/looksee/help.rb
looksee-2.1.0-universal-java-1.6 lib/looksee/help.rb
looksee-2.1.0 lib/looksee/help.rb