Class: Ragol::RegexpOption
Instance Attribute Summary
Attributes inherited from Option
#default, #description, #matchers, #name, #negates, #regexps, #tags
Instance Method Summary collapse
-
#initialize(args) ⇒ RegexpOption
constructor
A new instance of RegexpOption.
- #value_regexp ⇒ Object
Methods inherited from Option
#argument_missing, #convert, #do_match, #match_next_value, #match_next_value_optional, #match_next_value_required, #match_rc?, #post_process, #resolve_value, #set_option_value, #set_value_for_tag, #set_value_negative, #set_value_regexp, #take_eq_value, #takes_value?, #to_doc, #to_matcher, #to_s
Constructor Details
#initialize(args) ⇒ RegexpOption
Returns a new instance of RegexpOption.
8 9 10 11 |
# File 'lib/ragol/regexp_option.rb', line 8 def initialize args @regexp = args[:valueregexp] super end |
Instance Method Details
#value_regexp ⇒ Object
13 14 15 |
# File 'lib/ragol/regexp_option.rb', line 13 def value_regexp @regexp end |