Class: Kuby::Docker::Dockerfile::Command
- Inherits:
-
Object
- Object
- Kuby::Docker::Dockerfile::Command
- Defined in:
- lib/kuby/docker/dockerfile.rb
Overview
extend T::Sig
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
T::Sig::WithoutRuntime.sig { returns(T::Array[T.any(String, Integer)]) }.
Instance Method Summary collapse
-
#initialize(args) ⇒ Command
constructor
T::Sig::WithoutRuntime.sig { params(args: T::Array[T.any(String, Integer)]).void }.
-
#to_s ⇒ Object
T::Sig::WithoutRuntime.sig { returns(String) }.
Constructor Details
#initialize(args) ⇒ Command
T::Sig::WithoutRuntime.sig { params(args: T::Array[T.any(String, Integer)]).void }
17 18 19 |
# File 'lib/kuby/docker/dockerfile.rb', line 17 def initialize(args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
T::Sig::WithoutRuntime.sig { returns(T::Array[T.any(String, Integer)]) }
14 15 16 |
# File 'lib/kuby/docker/dockerfile.rb', line 14 def args @args end |
Instance Method Details
#to_s ⇒ Object
T::Sig::WithoutRuntime.sig { returns(String) }
22 23 24 |
# File 'lib/kuby/docker/dockerfile.rb', line 22 def to_s args.join(' ') end |