Module: SettingsSpec::Visitors::String
- Included in:
- SettingsSpec::Visitor
- Defined in:
- lib/settings_spec/visitors/string.rb
Instance Method Summary collapse
Instance Method Details
#match(regexp) ⇒ Object
5 6 7 8 |
# File 'lib/settings_spec/visitors/string.rb', line 5 def match(regexp) return false unless @setting.is_a? ::String !!regexp.match(@setting) end |