Method: Toys::Parser#alias_as
- Defined in:
- lib/toys/parser.rb
#alias_as(word) ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/toys/parser.rb', line 39 def alias_as(word) unless @tool.root? alias_tool = @lookup.get_tool(@tool.full_name.slice(0..-2) + [word], @priority) alias_tool.set_alias_target(@tool) if alias_tool end self end |