Sha256: 5f651094d36eca466e719750c7a5710ca0c34df5fd0b73c18322583b34b588da

Contents?: true

Size: 489 Bytes

Versions: 43

Compression:

Stored size: 489 Bytes

Contents

#!/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

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.35 lib/rex/struct2/constant.rb
librex-0.0.34 lib/rex/struct2/constant.rb
librex-0.0.33 lib/rex/struct2/constant.rb
librex-0.0.32 lib/rex/struct2/constant.rb
librex-0.0.31 lib/rex/struct2/constant.rb
librex-0.0.30 lib/rex/struct2/constant.rb
librex-0.0.29 lib/rex/struct2/constant.rb
librex-0.0.28 lib/rex/struct2/constant.rb
librex-0.0.27 lib/rex/struct2/constant.rb
librex-0.0.26 lib/rex/struct2/constant.rb
librex-0.0.25 lib/rex/struct2/constant.rb
librex-0.0.23 lib/rex/struct2/constant.rb
librex-0.0.21 lib/rex/struct2/constant.rb
librex-0.0.19 lib/rex/struct2/constant.rb
librex-0.0.17 lib/rex/struct2/constant.rb
librex-0.0.13 lib/rex/struct2/constant.rb
librex-0.0.12 lib/rex/struct2/constant.rb
librex-0.0.7 lib/rex/struct2/constant.rb
librex-0.0.6 lib/rex/struct2/constant.rb
librex-0.0.5 lib/rex/struct2/constant.rb