Sha256: 8e6c2ced18f20c951d8abb8fa356956c7dfb91b05bfa3bdcc6cfa1e4212d4263

Contents?: true

Size: 712 Bytes

Versions: 26

Compression:

Stored size: 712 Bytes

Contents

require 'fig/deparser'
require 'fig/deparser/v1_base'

module Fig; end
module Fig::Deparser; end

# Handles serializing of statements in the v1 grammar.
class Fig::Deparser::V1
  include Fig::Deparser
  include Fig::Deparser::V1Base

  def initialize(
    emit_as_input_or_to_be_published_values,
    indent_string = ' ' * 2,
    initial_indent_level = 0
  )
    @emit_as_input_or_to_be_published_values =
      emit_as_input_or_to_be_published_values
    @indent_string        = indent_string
    @initial_indent_level = initial_indent_level

    return
  end

  def grammar_version(statement)
    add_indent

    @text << "grammar v1\n"

    return
  end

  def grammar_description()
    return 'v1'
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
fig-1.23.0 lib/fig/deparser/v1.rb
fig-1.22.1.beta.1 lib/fig/deparser/v1.rb
fig-1.22.0 lib/fig/deparser/v1.rb
fig-1.21.1.beta.2 lib/fig/deparser/v1.rb
fig-1.21.1.beta.1 lib/fig/deparser/v1.rb
fig-1.21.0 lib/fig/deparser/v1.rb
fig-1.20.1.beta.1 lib/fig/deparser/v1.rb
fig-1.20.0 lib/fig/deparser/v1.rb
fig-1.19.0 lib/fig/deparser/v1.rb
fig-1.18.0 lib/fig/deparser/v1.rb
fig-1.17.0 lib/fig/deparser/v1.rb
fig-1.16.1.beta.1 lib/fig/deparser/v1.rb
fig-1.16.0 lib/fig/deparser/v1.rb
fig-1.15.1.beta.2 lib/fig/deparser/v1.rb
fig-1.15.1.beta.1 lib/fig/deparser/v1.rb
fig-1.15.0 lib/fig/deparser/v1.rb
fig-1.14.0 lib/fig/deparser/v1.rb
fig-1.13.0 lib/fig/deparser/v1.rb
fig-1.12.0 lib/fig/deparser/v1.rb
fig-1.11.0 lib/fig/deparser/v1.rb