Sha256: 8c88d2d090400eacf77413114ead337dcd54e342f8662eb38bce9a31242eb137

Contents?: true

Size: 705 Bytes

Versions: 171

Compression:

Stored size: 705 Bytes

Contents

module Expressir
  module Express
    # Formatter module - format schema as schema head only
    # @example Include into Formatter subclass
    #   formatter = Class.new(Expressir::Express::Formatter) do
    #     include Expressir::Express::SchemaHeadFormatter
    #   end
    module SchemaHeadFormatter
      # @!visibility private
      def self.included(mod)
        if !mod.superclass.private_method_defined? :format_declarations_schema or !mod.superclass.private_method_defined? :format_declarations_schema_head
          raise 'Missing method'
        end
      end

      private

      def format_declarations_schema(node)
        format_declarations_schema_head(node)
      end
    end
  end
end

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
expressir-2.1.0 lib/expressir/express/schema_head_formatter.rb
expressir-2.0.0 lib/expressir/express/schema_head_formatter.rb
expressir-1.4.2 lib/expressir/express/schema_head_formatter.rb
expressir-1.4.2-x86_64-linux-musl lib/expressir/express/schema_head_formatter.rb
expressir-1.4.2-x86_64-linux-gnu lib/expressir/express/schema_head_formatter.rb
expressir-1.4.2-x86_64-darwin lib/expressir/express/schema_head_formatter.rb
expressir-1.4.2-x64-mingw32 lib/expressir/express/schema_head_formatter.rb
expressir-1.4.2-x64-mingw-ucrt lib/expressir/express/schema_head_formatter.rb
expressir-1.4.2-arm64-darwin lib/expressir/express/schema_head_formatter.rb
expressir-1.4.2-aarch64-linux-musl lib/expressir/express/schema_head_formatter.rb
expressir-1.4.2-aarch64-linux-gnu lib/expressir/express/schema_head_formatter.rb
expressir-1.4.1 lib/expressir/express/schema_head_formatter.rb
expressir-1.4.1-x86_64-linux-musl lib/expressir/express/schema_head_formatter.rb
expressir-1.4.1-x86_64-linux-gnu lib/expressir/express/schema_head_formatter.rb
expressir-1.4.1-x86_64-darwin lib/expressir/express/schema_head_formatter.rb
expressir-1.4.1-x64-mingw32 lib/expressir/express/schema_head_formatter.rb
expressir-1.4.1-x64-mingw-ucrt lib/expressir/express/schema_head_formatter.rb
expressir-1.4.1-arm64-darwin lib/expressir/express/schema_head_formatter.rb
expressir-1.4.1-aarch64-linux-musl lib/expressir/express/schema_head_formatter.rb
expressir-1.4.1-aarch64-linux-gnu lib/expressir/express/schema_head_formatter.rb