File: tabcontainer.rb

package info (click to toggle)
mikutter 5.0.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,700 kB
  • sloc: ruby: 21,307; sh: 181; makefile: 19
file content (20 lines) | stat: -rw-r--r-- 341 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-

class Plugin::Gtk3::TabContainer < Gtk::Box
  attr_reader :i_tab

  def initialize(tab)
    type_strict tab => Plugin::GUI::TabLike
    @i_tab = tab
    super(:vertical, 0)
  end

  def to_sym
    i_tab.slug end
  alias slug to_sym

  def inspect
    "#<TabContainer(i_tab=#{i_tab})>"
  end
  alias to_s inspect
end