Class: Mireru::Widget::Binary
- Inherits:
-
Gtk::TextView
- Object
- Gtk::TextView
- Mireru::Widget::Binary
- Defined in:
- lib/mireru/widget/binary.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ Binary
constructor
A new instance of Binary.
Constructor Details
#initialize(file) ⇒ Binary
Returns a new instance of Binary.
24 25 26 27 28 29 30 31 |
# File 'lib/mireru/widget/binary.rb', line 24 def initialize(file) text = hexdump(file).string buffer = Gtk::TextBuffer.new buffer.text = text super(buffer) editable = false override_font(Pango::FontDescription.new("Monospace")) end |