Files
metasploit-gs/lib/rex/struct2/constant.rb
T

27 lines
500 B
Ruby
Raw Normal View History

# -*- coding: binary -*-
2005-03-26 16:52:59 +00:00
# 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
2013-03-07 18:16:57 -06:00
2013-08-30 16:28:33 -05:00
require 'rex/struct2/element'
include Rex::Struct2::Element
2005-03-26 16:52:59 +00:00
2013-08-30 16:28:33 -05:00
def initialize(value)
self.value = value
end
2005-03-26 16:52:59 +00:00
end
# end Rex::Struct2
end
2012-04-15 23:35:38 -05:00
end