Sha256: e6127568cf5f5a8b68b0ec1d3985fd52ef36936b9c119ee10b2e98fd60741f62

Contents?: true

Size: 970 Bytes

Versions: 1

Compression:

Stored size: 970 Bytes

Contents

require 'compel/builder/common'
require 'compel/builder/common_value'
require 'compel/builder/schema'
require 'compel/builder/hash'
require 'compel/builder/json'
require 'compel/builder/string'
require 'compel/builder/integer'
require 'compel/builder/float'
require 'compel/builder/datetime'
require 'compel/builder/time'
require 'compel/builder/date'
require 'compel/builder/boolean'

module Compel
  module Builder

    module Methods

      def hash
        Builder::Hash.new
      end

      def json
        Builder::JSON.new
      end

      def string
        Builder::String.new
      end

      def integer
        Builder::Integer.new
      end

      def float
        Builder::Float.new
      end

      def datetime
        Builder::DateTime.new
      end

      def time
        Builder::Time.new
      end

      def date
        Builder::Date.new
      end

      def boolean
        Builder::Boolean.new
      end

      extend self

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
compel-0.2.0 lib/compel/builder/methods.rb