Class: Rex::Struct2::CStructTemplate
- Inherits:
-
Object
- Object
- Rex::Struct2::CStructTemplate
- Defined in:
- lib/rex/struct2/c_struct_template.rb
Instance Attribute Summary collapse
-
#template ⇒ Object
Returns the value of attribute template.
-
#template_apply_restraint ⇒ Object
Returns the value of attribute template_apply_restraint.
-
#template_create_restraints ⇒ Object
Returns the value of attribute template_create_restraints.
Instance Method Summary collapse
- #apply_restraint(*ress) ⇒ Object
- #create_restraints(*ress) ⇒ Object
-
#initialize(*tem) ⇒ CStructTemplate
constructor
A new instance of CStructTemplate.
- #make_struct ⇒ Object
Constructor Details
#initialize(*tem) ⇒ CStructTemplate
Returns a new instance of CStructTemplate.
15 16 17 18 19 |
# File 'lib/rex/struct2/c_struct_template.rb', line 15 def initialize(*tem) self.template = tem self.template_create_restraints = [ ] self.template_apply_restraint = [ ] end |
Instance Attribute Details
#template ⇒ Object
Returns the value of attribute template.
12 13 14 |
# File 'lib/rex/struct2/c_struct_template.rb', line 12 def template @template end |
#template_apply_restraint ⇒ Object
Returns the value of attribute template_apply_restraint.
12 13 14 |
# File 'lib/rex/struct2/c_struct_template.rb', line 12 def template_apply_restraint @template_apply_restraint end |
#template_create_restraints ⇒ Object
Returns the value of attribute template_create_restraints.
12 13 14 |
# File 'lib/rex/struct2/c_struct_template.rb', line 12 def template_create_restraints @template_create_restraints end |
Instance Method Details
#apply_restraint(*ress) ⇒ Object
26 27 28 29 |
# File 'lib/rex/struct2/c_struct_template.rb', line 26 def apply_restraint(*ress) self.template_apply_restraint = ress return self end |
#create_restraints(*ress) ⇒ Object
21 22 23 24 |
# File 'lib/rex/struct2/c_struct_template.rb', line 21 def create_restraints(*ress) self.template_create_restraints = ress return self end |