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
1 changed files with 1 additions and 2 deletions

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