Sha256: 60a49511f89abdc89567d1f3adedbb5da998207125de5a9d83e267965001eaef

Contents?: true

Size: 401 Bytes

Versions: 26

Compression:

Stored size: 401 Bytes

Contents

require 'forwardable'

module Kafo
  module DataTypes
    class Scalar < DataType
      extend Forwardable
      def_delegators :@inner_type, :condition_value, :dump_default, :multivalued?, :typecast, :valid?

      def initialize
        @inner_type = DataTypes::Variant.new('Integer', 'Float', 'String', 'Boolean', 'Regexp')
      end
    end

    DataType.register_type('Scalar', Scalar)
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
kafo-1.0.7 lib/kafo/data_types/scalar.rb
kafo-1.0.6 lib/kafo/data_types/scalar.rb
kafo-1.0.5 lib/kafo/data_types/scalar.rb
kafo-1.0.4 lib/kafo/data_types/scalar.rb
kafo-1.0.3 lib/kafo/data_types/scalar.rb
kafo-1.0.2 lib/kafo/data_types/scalar.rb