Class: Holodekk::Docker::Dockerfile::InstructionBuilder::QuotedString

Inherits:
Object
  • Object
show all
Defined in:
lib/holodekk/docker/dockerfile/instruction_builder/quoted_string.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value = '') ⇒ QuotedString

Returns a new instance of QuotedString.



10
11
12
# File 'lib/holodekk/docker/dockerfile/instruction_builder/quoted_string.rb', line 10

def initialize(value = '')
  @value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



8
9
10
# File 'lib/holodekk/docker/dockerfile/instruction_builder/quoted_string.rb', line 8

def value
  @value
end

Instance Method Details

#outputObject



14
15
16
# File 'lib/holodekk/docker/dockerfile/instruction_builder/quoted_string.rb', line 14

def output
  "\"#{value}\""
end