lib/contextio/body_part.rb in contextio-1.3.0 vs lib/contextio/body_part.rb in contextio-1.4.0

- old
+ new

@@ -22,9 +22,11 @@ def initialize(api, options = {}) @api = api @message = options.delete(:message) || options.delete('message') options.each do |key, value| + key = key.to_s.gsub('-', '_') + instance_variable_set("@#{key}", value) unless self.respond_to?(key) define_singleton_method(key) do instance_variable_get("@#{key}")