Method: LEON::RegExp#initialize

Defined in:
lib/types.rb

#initialize(*args) ⇒ RegExp

Returns a new instance of RegExp.



9
10
11
12
13
14
15
16
# File 'lib/types.rb', line 9

def initialize(*args)
  if args.length > 1
    @modifier = args[1]
  else
    @modifier = ''
  end
  @pattern = args[0]
end