Method: Parslet::Atoms::Re#initialize

Defined in:
lib/parslet/atoms/re.rb

#initialize(match) ⇒ Re

Returns a new instance of Re.



12
13
14
15
16
17
# File 'lib/parslet/atoms/re.rb', line 12

def initialize(match)
  super()

  @match = match.to_s
  @re    = Regexp.new(self.match, Regexp::MULTILINE)
end