Sha256: 30db70114aaef01f2879421edcbdcea5af4f8c141bea18639c359d2f1c741363

Contents?: true

Size: 514 Bytes

Versions: 3

Compression:

Stored size: 514 Bytes

Contents

require 'fig/statement'

module Fig; end

# Specifies a default command that will be executed for a given Configuration
# if no command is specified on the command-line.
class Fig::Statement::Command < Fig::Statement
  attr_reader :command

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

    @command = command
  end

  def unparse_as_version(unparser)
    return unparser.command(self)
  end

  def minimum_grammar_version_required()
    return 0
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fig-0.1.77 lib/fig/statement/command.rb
fig-0.1.76 lib/fig/statement/command.rb
fig-0.1.75 lib/fig/statement/command.rb