Method: SublimeDSL::SublimeText::CommandSet::DSLReader#commands
- Defined in:
- lib/sublime_dsl/sublime_text/command_set.rb
#commands(name, &block) ⇒ Object
87 88 89 90 91 92 93 |
# File 'lib/sublime_dsl/sublime_text/command_set.rb', line 87 def commands(name, &block) @current_set and raise Error, "'commands' blocks cannot be nested" @current_set = CommandSet.new(name) instance_eval(&block) @command_sets << @current_set @current_set = nil end |