Use Crystal's shortcut to assign variables

This commit is contained in:
Luis Lavena 2016-03-10 20:52:50 -03:00
parent ca41d21294
commit 9e3316c93f

View file

@ -88,8 +88,7 @@ module Radix
# node.priority # node.priority
# # => 6 # # => 6
# ``` # ```
def key=(value : String) def key=(@key : String)
@key = value
@priority = compute_priority @priority = compute_priority
end end