lib/arachni/rpc/request.rb in arachni-rpc-0.1.1 vs lib/arachni/rpc/request.rb in arachni-rpc-0.1.2
- old
+ new
@@ -4,11 +4,11 @@
redistribution and commercial restrictions. Please see the Arachni-RPC
web site for more information on licensing and terms of use.
=end
-require File.join( File.expand_path( File.dirname( __FILE__ ) ), '../', 'rpc' )
+require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'message' )
module Arachni
module RPC
#
@@ -28,14 +28,11 @@
# }
#
# Any client that has SSL support and can serialize a Hash
# just like the one above can communicate with the RPC server.
#
-# @author: Tasos "Zapotek" Laskos
-# <tasos.laskos@gmail.com>
-# <zapotek@segfault.gr>
-# @version: 0.1
+# @author: Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
#
class Request < Message
#
# RPC message in the form of 'handler.method'.
@@ -68,24 +65,21 @@
# @see Message#initialize
def initialize( * )
super
end
- def do_not_defer!
+ def do_not_defer
@defer = false
end
def defer?
@defer.nil? ? true : @defer
end
private
def transmit?( attr )
- ![
- :@defer,
- :@callback
- ].include?( attr )
+ ![ :@defer, :@callback ].include?( attr )
end
end
end