module OutputMode::BuilderDSL

Public Instance Methods

build_output(**config) click to toggle source

Provides the base method signature @abstract Must be implemented by the main class/module @return OutputMode::Output The newly created output

# File lib/output_mode/builder_dsl.rb, line 47
def build_output(**config)
  raise NotImplementedError
end
output_callables() click to toggle source

The callable objects an `output` can be built from

# File lib/output_mode/builder_dsl.rb, line 30
def output_callables
  @output_callables ||= Callables.new
end
register_callable(**config, &b) click to toggle source

Adds a new callable object to {output_callables} @abstract This maybe overridden to restrict the method signature @param config Directly provided to {OutputMode::Callable#initialize} @yield Directly provided to {OutputMode::Callable#initialize}

# File lib/output_mode/builder_dsl.rb, line 38
def register_callable(**config, &b)
  Callable.new(**config, &b).tap do |c|
    output_callables << c
  end
end