Module: Trax::Model::CoreExtensions::String

Extended by:
ActiveSupport::Concern
Defined in:
lib/trax/model/core_extensions/string.rb

Instance Method Summary collapse

Instance Method Details

#to_matchableObject



7
8
9
# File 'lib/trax/model/core_extensions/string.rb', line 7

def to_matchable
  "%#{self.strip}%"
end

#uuidObject



11
12
13
# File 'lib/trax/model/core_extensions/string.rb', line 11

def uuid
  ::Trax::Model::UUID === self ? ::Trax::Model::UUID.new(self) : nil
end