Class: Kuby::Docker::Dockerfile::Command
- Inherits:
-
Object
- Object
- Kuby::Docker::Dockerfile::Command
- Defined in:
- lib/kuby/docker/dockerfile.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Command
constructor
A new instance of Command.
- #to_s ⇒ Object
Constructor Details
#initialize(*args) ⇒ Command
Returns a new instance of Command.
7 8 9 |
# File 'lib/kuby/docker/dockerfile.rb', line 7 def initialize(*args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
5 6 7 |
# File 'lib/kuby/docker/dockerfile.rb', line 5 def args @args end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/kuby/docker/dockerfile.rb', line 11 def to_s args.join(' ') end |