Class: Rex::Struct2::Constant
- Inherits:
-
Object
- Object
- Rex::Struct2::Constant
- 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
-
#initialize(value) ⇒ Constant
constructor
A new instance of Constant.
Methods included from Element
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 |