method

method_missing

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: ActiveResource::Base
method_missing(method_symbol, *arguments) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activeresource/lib/active_resource/base.rb, line 1002
      def method_missing(method_symbol, *arguments) #:nodoc:
        method_name = method_symbol.to_s

        case method_name.last
          when "="
            attributes[method_name.first(-1)] = arguments.first
          when "?"
            attributes[method_name.first(-1)]
          else
            attributes.has_key?(method_name) ? attributes[method_name] : super
        end
      end
Register or log in to add new notes.