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
# # => 6
# ```
def key=(value : String)
@key = value
def key=(@key : String)
@priority = compute_priority
end