Module: Trailblazer
- Defined in:
- lib/trailblazer/option.rb,
lib/trailblazer/circuit.rb,
lib/trailblazer/context.rb,
lib/trailblazer/circuit/alter.rb,
lib/trailblazer/circuit/trace.rb,
lib/trailblazer/circuit/present.rb,
lib/trailblazer/circuit/version.rb,
lib/trailblazer/circuit/activity.rb
Overview
TODO: mark/make all but mutable_options as frozen. The idea of Skill is to have a generic, ordered read/write interface that collects mutable runtime-computed data while providing access to compile-time information. The runtime-data takes precedence over the class data.
Defined Under Namespace
Classes: Circuit, Context, Option
Class Method Summary collapse
Class Method Details
.Context(wrapped_options, mutable_options = {}) ⇒ Object
75 76 77 |
# File 'lib/trailblazer/context.rb', line 75 def self.Context(, ={}) Context.new(, ) end |
.Option(proc) ⇒ Object
Note:
This might go to trailblazer-args along with ‘Context` at some point.
5 6 7 |
# File 'lib/trailblazer/option.rb', line 5 def self.Option(proc) Option.build(Option, proc) end |