Sha256: 04045e357327c5ad7d755f1d16192892efb264c690234d0e8645a798f21146dd

Contents?: true

Size: 624 Bytes

Versions: 15

Compression:

Stored size: 624 Bytes

Contents

# coding: utf-8

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

15 entries across 15 versions & 1 rubygems

Version Path
fig-1.27.10 lib/fig/statement/grammar_version.rb
fig-1.27.8 lib/fig/statement/grammar_version.rb
fig-1.27.5 lib/fig/statement/grammar_version.rb
fig-1.27.4 lib/fig/statement/grammar_version.rb
fig-1.27.3 lib/fig/statement/grammar_version.rb
fig-1.27.0 lib/fig/statement/grammar_version.rb
fig-1.26.1.beta.1 lib/fig/statement/grammar_version.rb
fig-1.26.0 lib/fig/statement/grammar_version.rb
fig-1.25.1.beta.1 lib/fig/statement/grammar_version.rb
fig-1.25.0 lib/fig/statement/grammar_version.rb
fig-1.24.1.beta.3 lib/fig/statement/grammar_version.rb
fig-1.24.1.beta.2 lib/fig/statement/grammar_version.rb
fig-1.24.1.beta.1 lib/fig/statement/grammar_version.rb
fig-1.24.0 lib/fig/statement/grammar_version.rb
fig-1.23.1.beta.1 lib/fig/statement/grammar_version.rb