Class: Buildkite::Builder::Dsl
- Inherits:
-
Object
- Object
- Buildkite::Builder::Dsl
- Defined in:
- lib/buildkite/builder/dsl.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
- #extend(mod) ⇒ Object
-
#initialize(context) ⇒ Dsl
constructor
A new instance of Dsl.
Constructor Details
#initialize(context) ⇒ Dsl
Returns a new instance of Dsl.
16 17 18 |
# File 'lib/buildkite/builder/dsl.rb', line 16 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
6 7 8 |
# File 'lib/buildkite/builder/dsl.rb', line 6 def context @context end |
Instance Method Details
#extend(mod) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/buildkite/builder/dsl.rb', line 8 def extend(mod) if mod < Extension super(mod.dsl) if mod.dsl else super end end |