lib/king_konf/variable.rb in king_konf-0.3.3 vs lib/king_konf/variable.rb in king_konf-0.3.4

- old
+ new

@@ -32,10 +32,10 @@ when :list then value.is_a?(Array) when :integer then value.is_a?(Integer) || value.nil? when :float then value.is_a?(Float) || value.is_a?(Integer) || value.nil? when :duration then value.is_a?(Float) || value.is_a?(Integer) || value.is_a?(String) || value.nil? when :boolean then value == true || value == false - when :symbol then value.is_a?(Symbol) + when :symbol then value.is_a?(Symbol) || value.is_a?(String) else raise "invalid type #{@type}" end end def allowed?(value)