lib/king_konf/variable.rb in king_konf-0.3.2 vs lib/king_konf/variable.rb in king_konf-0.3.3
- old
+ new
@@ -15,9 +15,10 @@
def cast(value)
case @type
when :float then value.to_f
when :duration then value.is_a?(String) ? Decoder.duration(value) : value
+ when :symbol then value.is_a?(String) ? value.to_sym : value
else value
end
end
def required?