Class: Holodekk::Docker::Dockerfile::InstructionBuilder::QuotedString
- Inherits:
-
Object
- Object
- Holodekk::Docker::Dockerfile::InstructionBuilder::QuotedString
- Defined in:
- lib/holodekk/docker/dockerfile/instruction_builder/quoted_string.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value = '') ⇒ QuotedString
constructor
A new instance of QuotedString.
- #output ⇒ Object
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
#value ⇒ Object
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
#output ⇒ Object
14 15 16 |
# File 'lib/holodekk/docker/dockerfile/instruction_builder/quoted_string.rb', line 14 def output "\"#{value}\"" end |