Class: Mercenary::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-livereload/serve.rb

Instance Method Summary collapse

Instance Method Details

#command(cmd_name) {|cmd| ... } ⇒ Object

Yields:

  • (cmd)


6
7
8
9
10
11
# File 'lib/jekyll-livereload/serve.rb', line 6

def command(cmd_name)
  Jekyll.logger.debug "Refined Command"
  cmd = @commands[cmd_name] || Command.new(cmd_name, self)
  yield cmd
  @commands[cmd_name] = cmd
end