Module: Origin::Extensions::String::ClassMethods
- Defined in:
- lib/origin/extensions/string.rb
Instance Method Summary collapse
-
#evolve(object) ⇒ String
Evolves the string into a MongoDB friendly value - in this case a string.
Instance Method Details
#evolve(object) ⇒ String
Evolves the string into a MongoDB friendly value - in this case a string.
90 91 92 93 94 |
# File 'lib/origin/extensions/string.rb', line 90 def evolve(object) __evolve__(object) do |obj| obj.regexp? ? obj : obj.to_s end end |