Sha256: ea9cba7fa60b8cfb6949490317815f9e10c5210d18972cf206883c6f23e677aa

Contents?: true

Size: 723 Bytes

Versions: 8

Compression:

Stored size: 723 Bytes

Contents

module Tnql #:nodoc: all
  module Nodes
    module BatchTypeNode
      def to_type
        string = respond_to?(:normalise) ? normalise : text_value
        string.upcase
      end
    end

    module USomNode
      def normalise
        'usom'
      end
    end

    module UPathNode
      def normalise
        'upath'
      end
    end

    module UPasNode
      def normalise
        'upas'
      end
    end

    module UCwtNode
      def normalise
        'ucwt'
      end
    end

    module UCdNode
      def normalise
        'ucd'
      end
    end

    module UNcdNode
      def normalise
        'uncd'
      end
    end

    module UExtregNode
      def normalise
        'uextreg'
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tnql-1.1.2 lib/tnql/nodes/batch_types.rb
tnql-1.1.1 lib/tnql/nodes/batch_types.rb
tnql-1.1.0 lib/tnql/nodes/batch_types.rb
tnql-1.0.4 lib/tnql/nodes/batch_types.rb
tnql-1.0.3 lib/tnql/nodes/batch_types.rb
tnql-1.0.2 lib/tnql/nodes/batch_types.rb
tnql-1.0.1 lib/tnql/nodes/batch_types.rb
tnql-1.0.0 lib/tnql/nodes/batch_types.rb