class Rumblelog
Public Instance Methods
protected!()
click to toggle source
# File rumblelog.rb, line 30 def protected! return if authorized? headers['WWW-Authenticate'] = 'Basic realm="Restricted Area"' halt 401, "Not authorized\n" end
with_context(&block)
click to toggle source
# File rumblelog.rb, line 47 def with_context(&block) if block.nil? raise "with_context called without block" elsif Fauna.connection.nil? raise "cannot use Fauna::Client.context without connection" else Fauna::Client.context(Fauna.connection) do block.call end end end