Class: SectionName
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #debug ⇒ Object
-
#initialize(_fh, _st) ⇒ SectionName
constructor
A new instance of SectionName.
Methods inherited from Base
#[], #method_missing, #parse_slice, #parse_struct
Constructor Details
#initialize(_fh, _st) ⇒ SectionName
Returns a new instance of SectionName.
2 3 4 5 |
# File 'lib/elfcat/sectionname.rb', line 2 def initialize _fh, _st super() parse _fh, _st end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Base
Instance Method Details
#debug ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/elfcat/sectionname.rb', line 7 def debug @data.each_with_index do |x, i| index_s = sprintf("%4d", i) name_s = sprintf("%s", x) puts "#{index_s} | #{name_s}" end end |