Class: Comet::DSL::MapOutput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MapOutput

Returns a new instance of MapOutput.



4
5
6
# File 'lib/comet/dsl/map_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/map_output.rb', line 12

def path
  @path
end

Instance Method Details

#to_sObject



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

def to_s
  'map output'
end

#validate!Object



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

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