class FileCrawler::Regex
Attributes
regexp_end[RW]
regexp_start[RW]
Public Class Methods
new(regexp_start, regexp_end)
click to toggle source
# File lib/file_crawler/finder/command/collect.rb, line 6 def initialize(regexp_start, regexp_end) @regexp_start = regexp_start @regexp_end = regexp_end end
Public Instance Methods
pattern()
click to toggle source
# File lib/file_crawler/finder/command/collect.rb, line 11 def pattern /#{Regexp.escape(regexp_start)}([^#{Regexp.escape(regexp_end)}]+)#{Regexp.escape(regexp_end)}/ end
to_s()
click to toggle source
# File lib/file_crawler/finder/command/collect.rb, line 15 def to_s "#<#{self.class.name}: start='#{regexp_start}', end='#{regexp_end}'" end