Class: Comet::DSL::MapOutput
- Inherits:
-
Object
- Object
- Comet::DSL::MapOutput
- Defined in:
- lib/comet/dsl/map_output.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ MapOutput
constructor
A new instance of MapOutput.
- #to_s ⇒ Object
- #validate! ⇒ Object
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
#path ⇒ Object (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_s ⇒ Object
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 |