lib/kl/primitives/symbols.rb in shen-ruby-0.3.1 vs lib/kl/primitives/symbols.rb in shen-ruby-0.4.0

- old
+ new

@@ -1,8 +1,9 @@ module Kl module Primitives module Symbols def intern(str) + raise Kl::Error, "#{str} is not a string" unless str.kind_of? String # 'true' and 'false' are treated specially and return the # corresponding booleans if str == 'true' true elsif str == 'false'