class Pry::Command::Ls::LsEntity

Attributes

_pry_[R]

Public Class Methods

new(opts) click to toggle source
# File lib/pry/commands/ls/ls_entity.rb, line 17
def initialize(opts)
  @interrogatee = opts[:interrogatee]
  @no_user_opts = opts[:no_user_opts]
  @opts = opts[:opts]
  @args = opts[:args]
  @grep = Grep.new(Regexp.new(opts[:opts][:G] || '.'))
  @_pry_ = opts.delete(:_pry_)
end

Public Instance Methods

entities_table() click to toggle source
# File lib/pry/commands/ls/ls_entity.rb, line 26
def entities_table
  entities.map(&:write_out).reject { |o| !o }.join('')
end