Module: Rootage
- Defined in:
- lib/rootage/log.rb,
lib/rootage/core.rb,
lib/rootage/help.rb,
lib/rootage/action.rb,
lib/rootage/option.rb,
lib/rootage/command.rb,
lib/rootage/argument.rb,
lib/rootage/scenario.rb,
lib/rootage/exception.rb,
lib/rootage/normalizer.rb,
lib/rootage/test-helper.rb
Defined Under Namespace
Modules: ActionCollection, ArgumentCollection, BooleanValue, CollectionInterface, HelpOption, InitAction, Log, Normalizer, OptionCollection, ScenarioInterface, ScenarioTest Classes: Action, Argument, ArgumentDefinition, ArgvError, CollectionError, Command, CommandContext, CommandPhase, Error, ExceptionHandler, Help, Item, Logger, MarkdownHelp, Model, NoSuchItem, NormalizerTypeError, NormalizerValueError, NullLogger, Option, OptionDefinition, OptionError, Phase, PhaseTimeoutError, ProcessContext, RubyStandardLogger, Scenario, ScenarioDefinition, ScenarioError, ScenarioResult, Sequence, StandardCommand, SyslogLogger, TextHelp, UnknownLogLevel
Class Method Summary collapse
Class Method Details
.scope(&b) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/rootage/test-helper.rb', line 11 def self.scope(&b) @scope_id = (@scope_id || 0) + 1 mod = Module.new const_set("MODULE%s" % @scope_id, mod) mod.send(:define_method, :this) do mod end mod.instance_exec(mod, &b) end |