class Baikal::Hexdump::Field::Offset
The Offset
field outputs the offset of a hexdump row, formatted via a printf template.
Public Class Methods
new(template)
click to toggle source
Calls superclass method
# File lib/baikal/hexdump.rb, line 70 def initialize template super() @template = template return end
Public Instance Methods
format(row)
click to toggle source
# File lib/baikal/hexdump.rb, line 76 def format row return sprintf(@template, row.offset) end