class BBLib::OptsParser::Regexp
Protected Instance Methods
format_value(value)
click to toggle source
# File lib/bblib/cli/options/regexp.rb, line 7 def format_value(value) if value =~ /^\/.*\/\w*$/ value.to_regex else /#{value}/ end end