Sha256: ba60f8066b27bfde69b02effca2b2b6ba43234bf8e2ef9c3a321bcfd16220c00

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

#
# EXPERIMENTAL class
class Builtin
  attr_accessor :param

  def initialize(parent)
    @parent = parent
  end

  def method_missing(method)
    @parent.log "BUILTIN #{method}"
  end

  def respond_to_missing?(_method, *)
    true
  end
end

module CheckDSL
  def service(param)
    log "BUILTIN service(#{param})"
    @builtin ||= Builtin.new(self)
    @builtin.param = param
    @builtin
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
teuton-2.9.2 lib/teuton/check/dsl/builtin.rb
teuton-2.9.1 lib/teuton/check/dsl/builtin.rb
teuton-2.9.0 lib/teuton/check/dsl/builtin.rb