Class: Buildkite::Builder::Dsl

Inherits:
Object
  • Object
show all
Defined in:
lib/buildkite/builder/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (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