Sha256: e6f6762b1fab7546b0139af1236c9e18097d4d508b9ffdd7d6279555cd092efb

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

Stored size: 565 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 statement_type()
    return 'command'
  end

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

  def minimum_grammar_for_publishing()
    return [0]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fig-0.1.81 lib/fig/statement/command.rb
fig-0.1.79 lib/fig/statement/command.rb