Support the stream attribute

This commit is contained in:
jvazquez-r7
2014-12-05 16:52:59 -06:00
parent 90e2bbbff5
commit ca164cd99f
21 changed files with 61 additions and 44 deletions
@@ -13,7 +13,8 @@ module Rex
attr_accessor :contents
# @param contents [String] the contents of the block
def initialize(contents = '')
def initialize(stream = nil, contents = '')
super(stream)
self.contents = contents
self.length = contents.length
end