Method: Awsum::S3::Headers#method_missing
- Defined in:
- lib/s3/headers.rb
#method_missing(method, *args, &block) ⇒ Object
Locking down to HTTPHeader methods only
9 10 11 12 13 14 15 |
# File 'lib/s3/headers.rb', line 9 def method_missing(method, *args, &block) if !%w(body body_permitted? entity inspect read_body to_ary value).include?(method.to_s) && @response.respond_to?(method) @response.send(method, *args, &block) else raise NoMethodError.new("undefined method `#{method}' for #{inspect}") end end |