Files
metasploit-gs/lib/rex/struct2/constant.rb
T
Ramon de C Valle f124597a56 Code cleanups
git-svn-id: file:///home/svn/framework3/trunk@5773 4d416f70-5f16-0410-b530-b9f4589650da
2008-10-19 21:03:39 +00:00

26 lines
489 B
Ruby

#!/usr/bin/env ruby
# Rex::Struct2
module Rex
module Struct2
# this is a "constant" element. It's not actually constant, you can set it
# via the constructor and value. It doesn't do from_s/to_s, etc.
# what use is it? Well it's useful for doing constant restraints (like fix
# sized arrays), and probably not a ton more.
class Constant
require 'rex/struct2/element'
include Rex::Struct2::Element
def initialize(value)
self.value = value
end
end
# end Rex::Struct2
end
end