Sha256: d2a503ecde00b691ed408499afa2704586db957e6f3497a2aa30de0b7441b99a

Contents?: true

Size: 267 Bytes

Versions: 9

Compression:

Stored size: 267 Bytes

Contents

module Schemacop
  module V3
    class BooleanNode < Node
      def as_json
        process_json([], type: :boolean)
      end

      def allowed_types
        {
          TrueClass  => :boolean,
          FalseClass => :boolean
        }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
schemacop-3.0.2 lib/schemacop/v3/boolean_node.rb
schemacop-3.0.1 lib/schemacop/v3/boolean_node.rb
schemacop-3.0.0 lib/schemacop/v3/boolean_node.rb
schemacop-3.0.0.rc5 lib/schemacop/v3/boolean_node.rb
schemacop-3.0.0.rc4 lib/schemacop/v3/boolean_node.rb
schemacop-3.0.0.rc3 lib/schemacop/v3/boolean_node.rb
schemacop-3.0.0.rc2 lib/schemacop/v3/boolean_node.rb
schemacop-3.0.0.rc1 lib/schemacop/v3/boolean_node.rb
schemacop-3.0.0.rc0 lib/schemacop/v3/boolean_node.rb