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

Version Path
rex-struct2-0.1.4 lib/rex/struct2/constant.rb
rex-struct2-0.1.3 lib/rex/struct2/constant.rb
rex-2.0.13 lib/rex/struct2/constant.rb
rex-2.0.12 lib/rex/struct2/constant.rb
rex-2.0.11 lib/rex/struct2/constant.rb
rex-struct2-0.1.2 lib/rex/struct2/constant.rb
rex-struct2-0.1.1 lib/rex/struct2/constant.rb
rex-struct2-0.1.0 lib/rex/struct2/constant.rb
rex-2.0.10 lib/rex/struct2/constant.rb
rex-2.0.9 lib/rex/struct2/constant.rb
rex-2.0.8 lib/rex/struct2/constant.rb
rex-2.0.7 lib/rex/struct2/constant.rb
rex-2.0.5 lib/rex/struct2/constant.rb
rex-2.0.4 lib/rex/struct2/constant.rb
dstruct-0.0.1 lib/rex/struct2/constant.rb
rex-2.0.3 lib/rex/struct2/constant.rb
librex-0.0.999 lib/rex/struct2/constant.rb
rex-2.0.2 lib/rex/struct2/constant.rb
librex-0.0.71 lib/rex/struct2/constant.rb
librex-0.0.70 lib/rex/struct2/constant.rb