Class: Rex::Struct2::Constant

Inherits:
Object
  • Object
show all
Includes:
Element
Defined in:
lib/rex/struct2/constant.rb

Overview

what use is it? Well it’s useful for doing constant restraints (like fix sized arrays), and probably not a ton more.

Instance Attribute Summary

Attributes included from Element

#container, #restraint, #value

Instance Method Summary collapse

Methods included from Element

#slength, #update_restraint

Constructor Details

#initialize(value) ⇒ Constant

Returns a new instance of Constant.



18
19
20
# File 'lib/rex/struct2/constant.rb', line 18

def initialize(value)
  self.value = value
end