Class: Glark::RegexpOption

Inherits:
Option
  • Object
show all
Defined in:
lib/glark/input/filter/options.rb

Instance Method Summary collapse

Methods inherited from Option

#add_to_option_data, #initialize, #match_rc, #tags

Constructor Details

This class inherits a constructor from Glark::Option

Instance Method Details

#argtypeObject



36
37
38
# File 'lib/glark/input/filter/options.rb', line 36

def argtype
  :string
end

#set(val) ⇒ Object



32
33
34
# File 'lib/glark/input/filter/options.rb', line 32

def set val
  @optee.add field, posneg, cls.new(Regexp.create val)
end