Class: Kuby::Docker::Dockerfile::Command
- Inherits:
-
Object
- Object
- Kuby::Docker::Dockerfile::Command
- Extended by:
- T::Sig
- 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.
17 18 19 |
# File 'lib/kuby/docker/dockerfile.rb', line 17 def initialize(args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
14 15 16 |
# File 'lib/kuby/docker/dockerfile.rb', line 14 def args @args end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/kuby/docker/dockerfile.rb', line 22 def to_s args.join(' ') end |