1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib/pry/commands/ls/grep.rb
Kyrylo Silin f67830d9a5 Refactor the way how ls displays global variables
This is just a facility, "ls.rb" still uses the old code for the time
being. I'm going to assemble everything when I prepare all the code.
2013-11-30 14:26:28 +02:00

15 lines
234 B
Ruby

class Pry
class Command::Ls < Pry::ClassCommand
class Grep
def initialize(grep_regexp)
@grep_regexp = grep_regexp
end
def regexp
proc { |x| x.grep(@grep_regexp) }
end
end
end
end