Class: Ragol::StringOption

Inherits:
Option
  • Object
show all
Defined in:
lib/ragol/string_option.rb

Constant Summary collapse

REGEXP =
Regexp.new '^ [\"\']? (.*?) [\"\']? $ ', Regexp::EXTENDED

Instance Attribute Summary

Attributes inherited from Option

#default, #description, #matchers, #name, #negates, #regexps, #tags

Instance Method Summary collapse

Methods inherited from Option

#argument_missing, #convert, #do_match, #initialize, #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

This class inherits a constructor from Ragol::Option

Instance Method Details

#value_regexpObject



10
11
12
# File 'lib/ragol/string_option.rb', line 10

def value_regexp
  REGEXP
end