diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-31 17:35:52 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-31 17:35:52 -0400 |
commit | 27d83bc510984c94c61f203981f5bfd840d54d05 (patch) | |
tree | f6761cb71a5a6a0a94da81ce8031e662b6ac7d6f /src/guff/models/tag.cr | |
parent | d0d3a18a63948740027fb9fd760e9a7b15032776 (diff) | |
download | old-guff-27d83bc510984c94c61f203981f5bfd840d54d05.tar.bz2 old-guff-27d83bc510984c94c61f203981f5bfd840d54d05.zip |
update for crystal 0.14
Diffstat (limited to 'src/guff/models/tag.cr')
-rw-r--r-- | src/guff/models/tag.cr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/guff/models/tag.cr b/src/guff/models/tag.cr index 46a69eb..f4232ce 100644 --- a/src/guff/models/tag.cr +++ b/src/guff/models/tag.cr @@ -47,8 +47,8 @@ module Guff end def get_tags( - tags = [] of String : Array(String), - show_all = false : Bool, + tags : Array(String) = [] of String, + show_all : Bool = false, ) : Array(Hash(String, String | Int32)) r = [] of Hash(String, String | Int32) @@ -81,7 +81,7 @@ module Guff end def add_tags( - tags = [] of String : Array(String) + tags : Array(String) = [] of String, ) missing_tags = get_missing_tags(tags) @@ -95,7 +95,7 @@ module Guff end private def get_missing_tags( - tags = [] of String : Array(String) + tags : Array(String) = [] of String, ) : Array(String) # get ids of existing tags ids = get_ids(tags) @@ -105,7 +105,7 @@ module Guff end private def get_ids( - tags = [] of String : Array(String) + tags : Array(String) = [] of String, ) : Hash(String, Int32) r = {} of String => Int32 |