Method: Archimate::DataModel::LangString#=~
- Defined in:
- lib/archimate/data_model/lang_string.rb
#=~(other) ⇒ Object
85 86 87 88 89 90 91 92 |
# File 'lib/archimate/data_model/lang_string.rb', line 85 def =~(other) str = to_s if other.is_a?(Regexp) other =~ str else Regexp.new(Regexp.escape(str)) =~ other end end |