lib/sickle.rb in sickle-0.1.0 vs lib/sickle.rb in sickle-0.1.1
- old
+ new
@@ -64,10 +64,10 @@
attr_accessor :name, :opts, :default
def initialize(name, opts)
@name, @opts = name, opts
- @default = opts[:default] || false
+ @default = opts.has_key?(:default) ? opts[:default] : false
if @default == true || @default == false
@type = :boolean
else
@type = @default.class.to_s.downcase.to_sym