# File lib/sinatra/rabbit.rb, line 59 def initialize(coll, name, opts, &block) @name = name.to_sym opts = STANDARD[@name].merge(opts) if standard? @collection = coll raise "No method for operation #{name}" unless opts[:method] @method = opts[:method].to_sym @member = opts[:member] @description = "" instance_eval(&block) if block_given? generate_documentation generate_options end