Method: Fast.shortcut
- Defined in:
- lib/fast/shortcut.rb
.shortcut(identifier, *args, &block) ⇒ Object
Store predefined searches with default paths through shortcuts. define your Fastfile in you root folder or
21 22 23 24 |
# File 'lib/fast/shortcut.rb', line 21 def shortcut(identifier, *args, &block) puts "identifier #{identifier.inspect} will be override" if shortcuts.key?(identifier) shortcuts[identifier] = Shortcut.new(*args, &block) end |