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-6.4.0 lib/kafo/data_types/scalar.rb
kafo-6.3.0 lib/kafo/data_types/scalar.rb
kafo-6.2.1 lib/kafo/data_types/scalar.rb
kafo-6.2.0 lib/kafo/data_types/scalar.rb
kafo-6.1.2 lib/kafo/data_types/scalar.rb
kafo-6.1.1 lib/kafo/data_types/scalar.rb
kafo-6.1.0 lib/kafo/data_types/scalar.rb
kafo-6.0.0 lib/kafo/data_types/scalar.rb
kafo-5.1.0 lib/kafo/data_types/scalar.rb
kafo-5.0.1 lib/kafo/data_types/scalar.rb
kafo-5.0.0 lib/kafo/data_types/scalar.rb
kafo-4.1.0 lib/kafo/data_types/scalar.rb
kafo-4.0.1 lib/kafo/data_types/scalar.rb
kafo-4.0.0 lib/kafo/data_types/scalar.rb
kafo-3.0.0 lib/kafo/data_types/scalar.rb
kafo-2.1.0 lib/kafo/data_types/scalar.rb
kafo-2.0.2 lib/kafo/data_types/scalar.rb
kafo-2.0.1 lib/kafo/data_types/scalar.rb
kafo-2.0.0 lib/kafo/data_types/scalar.rb
kafo-1.0.8 lib/kafo/data_types/scalar.rb