Sha256: cd8e2ec5c842869a5a95070335a154c3c8f01861c4186bf6d4f2eba3acfb32d4

Contents?: true

Size: 490 Bytes

Versions: 6

Compression:

Stored size: 490 Bytes

Contents

# encoding: UTF-8
module MarkMapper
  module Extensions
    module String
      extend ActiveSupport::Concern

      module ClassMethods
        def to_marklogic(value)
          value && value.to_s
        end

        def from_marklogic(value)
          value && value.to_s
        end

        def xs_type
          "string"
        end

      end

      def _mark_mapper_deep_copy_
        self.dup
      end
    end
  end
end

class String
  include MarkMapper::Extensions::String
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mark_mapper-0.0.6 lib/mark_mapper/extensions/string.rb
mark_mapper-0.0.5 lib/mark_mapper/extensions/string.rb
mark_mapper-0.0.4 lib/mark_mapper/extensions/string.rb
mark_mapper-0.0.3 lib/mark_mapper/extensions/string.rb
mark_mapper-0.0.2 lib/mark_mapper/extensions/string.rb
mark_mapper-0.0.1 lib/mark_mapper/extensions/string.rb