Class: SWIG::TYPE_p_bro_record
- Inherits:
-
Object
- Object
- SWIG::TYPE_p_bro_record
- Includes:
- Broccoli
- Defined in:
- lib/Bro/record.rb,
ext/broccoli/test/test.rb
Instance Method Summary collapse
-
#[](position) ⇒ Object
Retrieve record value by position.
- #id ⇒ Object
-
#method_missing(meth, *args) ⇒ Object
I need to build a full record typemapper to deal with this correctly.
-
#orig_id ⇒ Object
.id is a method for all ruby objects.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object
I need to build a full record typemapper to deal with this correctly.
13 14 15 |
# File 'lib/Bro/record.rb', line 13 def method_missing(meth, *args) bro_record_get_named_val(self, meth.id2name) end |
Instance Method Details
#[](position) ⇒ Object
Retrieve record value by position
18 19 20 |
# File 'lib/Bro/record.rb', line 18 def [](pos) bro_record_get_nth_val(self, pos.to_i) end |
#id ⇒ Object
8 9 10 |
# File 'lib/Bro/record.rb', line 8 def id return method_missing(:id) end |
#orig_id ⇒ Object
.id is a method for all ruby objects. Move it out of the way for records.
7 |
# File 'lib/Bro/record.rb', line 7 alias :orig_id :id |