# File lib/sinatra/rabbit.rb, line 161 def operation(name, opts = {}, &block) raise DuplicateOperationException if @operations[name] @operations[name] = Operation.new(self, name, opts, &block) end