Method: Command::CommandSet#apply_root_blocks
- Defined in:
- lib/command-set/command-set.rb
#apply_root_blocks(blocks) ⇒ Object
262 263 264 265 266 267 |
# File 'lib/command-set/command-set.rb', line 262 def apply_root_blocks(blocks) @root_blocks += blocks blocks.each do |block| @command_list[nil].instance_eval(&block) end end |