Class: Pwnlib::Constants::ConstantBuilder
- Inherits:
-
Object
- Object
- Pwnlib::Constants::ConstantBuilder
- Defined in:
- lib/pwnlib/constants/constants.rb
Overview
Small class for instance_eval loaded file.
Instance Attribute Summary collapse
-
#tbl ⇒ Object
readonly
Returns the value of attribute tbl.
Instance Method Summary collapse
- #const(sym, val) ⇒ Object
-
#initialize ⇒ ConstantBuilder
constructor
A new instance of ConstantBuilder.
Constructor Details
#initialize ⇒ ConstantBuilder
Returns a new instance of ConstantBuilder.
87 88 89 |
# File 'lib/pwnlib/constants/constants.rb', line 87 def initialize @tbl = {} end |
Instance Attribute Details
#tbl ⇒ Object (readonly)
Returns the value of attribute tbl.
85 86 87 |
# File 'lib/pwnlib/constants/constants.rb', line 85 def tbl @tbl end |