Sha256: 708c5ac92af5be600f35684e21cec01b917a1fc39bc688590d1f41688e07eef6

Contents?: true

Size: 337 Bytes

Versions: 28

Compression:

Stored size: 337 Bytes

Contents

require "expressir/express_exp/formatter"

module Expressir
  module ExpressExp
    class SchemaHeadFormatter < Formatter
      def format_schema(node)
        [
          "SCHEMA #{node.id}#{node.version ? " #{format(node.version)}" : ""};",
          *node.interfaces.map{|x| format(x)}
        ].join("\n")
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
expressir-0.2.15 lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.15-x86_64-linux lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.15-x86_64-darwin lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.15-x86-mingw32 lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.15-x86-linux lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.15-x64-mingw32 lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.15-arm64-darwin lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.14 lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.14-x86_64-linux lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.14-x86_64-darwin lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.14-x86-mingw32 lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.14-x86-linux lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.14-x64-mingw32 lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.14-arm64-darwin lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.13 lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.13-x86_64-linux lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.13-x86_64-darwin lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.13-x86-mingw32 lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.13-x86-linux lib/expressir/express_exp/schema_head_formatter.rb
expressir-0.2.13-x64-mingw32 lib/expressir/express_exp/schema_head_formatter.rb