Add alias_method_chain Ruby snippet
This commit is contained in:
parent
e3c2931bef
commit
56826e4ed6
@ -209,6 +209,8 @@ snippet defds
|
|||||||
def_delegators :${1:@del_obj}, :${0:del_methods}
|
def_delegators :${1:@del_obj}, :${0:del_methods}
|
||||||
snippet am
|
snippet am
|
||||||
alias_method :${1:new_name}, :${0:old_name}
|
alias_method :${1:new_name}, :${0:old_name}
|
||||||
|
snippet amc
|
||||||
|
alias_method_chain :${1:name}, :${0:feature}
|
||||||
snippet app
|
snippet app
|
||||||
if __FILE__ == $PROGRAM_NAME
|
if __FILE__ == $PROGRAM_NAME
|
||||||
${0}
|
${0}
|
||||||
|
Loading…
Reference in New Issue
Block a user