mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
16 lines
234 B
Ruby
16 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
|