dkubb/axiom-types

View on GitHub
lib/axiom/types/string.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8

module Axiom
  module Types

    # Represents a string type
    class String < Object
      extend LengthComparable, Encodable

      primitive       ::String
      coercion_method :to_string

      minimum_length 0
      maximum_length 255

    end # class String
  end # module Types
end # module Axiom