Sha256: 8af32e484b3b3bc9961778e6185e651fae06d3e11681c57b04ecaaf49a8baddf

Contents?: true

Size: 607 Bytes

Versions: 26

Compression:

Stored size: 607 Bytes

Contents

require 'fig/statement'

module Fig; end

# A statement that declares the syntax that a package is to be serialized in.
class Fig::Statement::GrammarVersion < Fig::Statement
  attr_reader :version

  def initialize(line_column, source_description, version)
    super(line_column, source_description)

    @version = version
  end

  def statement_type()
    return 'grammar'
  end

  def deparse_as_version(deparser)
    return deparser.grammar_version(self)
  end

  def minimum_grammar_for_emitting_input()
    return [version]
  end

  def minimum_grammar_for_publishing()
    return [version]
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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