Class: Comet::DSL::BinOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/comet/dsl/bin_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ BinOutput

Returns a new instance of BinOutput.



4
5
6
# File 'lib/comet/dsl/bin_output.rb', line 4

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



12
13
14
# File 'lib/comet/dsl/bin_output.rb', line 12

def path
  @path
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/comet/dsl/bin_output.rb', line 8

def to_s
  'bin output'
end

#validate!Object



14
15
16
# File 'lib/comet/dsl/bin_output.rb', line 14

def validate!
  raise "#{self} path is invalid" if @path.strip.empty?
end