class Uh::WM::Launcher::DSL

Public Class Methods

new(actions) click to toggle source
# File lib/uh/wm/launcher.rb, line 43
def initialize actions
  @actions  = actions
  @messages = []
end

Public Instance Methods

each() { |*m| ... } click to toggle source
# File lib/uh/wm/launcher.rb, line 53
def each
  @messages.each { |m| yield *m }
end
evaluate(instructions) click to toggle source
# File lib/uh/wm/launcher.rb, line 48
def evaluate instructions
  instance_eval &instructions
  self
end
method_missing(m, *args, &block) click to toggle source
Calls superclass method
# File lib/uh/wm/launcher.rb, line 57
def method_missing m, *args, &block
  if respond_to? m
    @messages << [m, args, block]
  else
    super
  end
end
respond_to_missing?(m, _) click to toggle source
Calls superclass method
# File lib/uh/wm/launcher.rb, line 65
def respond_to_missing? m, _
  m == :execute! || @actions.respond_to?(m) || super
end