# File lib/aws/record/scopes.rb, line 33
      def scope name, scope = nil, &block
        
        raise ArgumentError, "only a scope or block may be passed, not both" if
          scope and block_given?

        method_definition = scope ? 
          lambda{ scope } :
          block

        extend(Module.new { define_method(name, &method_definition) })

      end