Sha256: afb66bc041ce427fd9decb106c3fa1dbe6c403fce614d26ffb001f6c73333a0d
Contents?: true
Size: 500 Bytes
Versions: 20
Compression:
Stored size: 500 Bytes
Contents
# -*- coding: binary -*- # 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
Version data entries
20 entries across 20 versions & 4 rubygems