Class: Glark::RegexpOption
- Defined in:
- lib/glark/input/filter/options.rb
Direct Known Subclasses
DirNameOption, DirPathOption, ExtOption, NameOption, PathOption
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
#argtype ⇒ Object
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 |