lib/uencode.rb in uencode-0.0.2 vs lib/uencode.rb in uencode-0.0.3

- old
+ new

@@ -14,10 +14,10 @@ end end module AttrSetting def set_attributes(options) - self.class.const_get("ATTRIBUTES").each { |attr| instance_variable_set(:"@#{attr}", options[attr]) } + self.class.const_get("ATTRIBUTES").each { |attr| instance_variable_set(:"@#{attr}", options[attr.to_sym] || options[attr.to_s]) } end def initialize(options) set_attributes options end