Sha256: 42f8afa12a664c374eab80c8addefda10f2d5a614dcea6e4aee09290efb37cd4

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

#!/usr/bin/env ruby
# -*- 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

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/struct2/constant.rb
librex-0.0.66 lib/rex/struct2/constant.rb