Class: Canopus::Panel::Definition

Inherits:
Data
  • Object
show all
Defined in:
lib/canopus/panel.rb,
sig/panel.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#badge ⇒ Object (readonly)

Returns the value of attribute badge

Returns:

  • (Object) —

    the current value of badge



5
6
7
# File 'lib/canopus/panel.rb', line 5

def badge
  @badge
end

#build ⇒ Object (readonly)

Returns the value of attribute build

Returns:

  • (Object) —

    the current value of build



5
6
7
# File 'lib/canopus/panel.rb', line 5

def build
  @build
end

#dock ⇒ Object (readonly)

Returns the value of attribute dock

Returns:

  • (Object) —

    the current value of dock



5
6
7
# File 'lib/canopus/panel.rb', line 5

def dock
  @dock
end

#icon ⇒ Object (readonly)

Returns the value of attribute icon

Returns:

  • (Object) —

    the current value of icon



5
6
7
# File 'lib/canopus/panel.rb', line 5

def icon
  @icon
end

#id ⇒ Object (readonly)

Returns the value of attribute id

Returns:

  • (Object) —

    the current value of id



5
6
7
# File 'lib/canopus/panel.rb', line 5

def id
  @id
end

#title ⇒ Object (readonly)

Returns the value of attribute title

Returns:

  • (Object) —

    the current value of title



5
6
7
# File 'lib/canopus/panel.rb', line 5

def title
  @title
end

Class Method Details

.new ⇒ instance

Parameters:

  • id (String, Symbol)
  • title (String)
  • icon (Object)
  • dock (dock)
  • badge (Object)

Returns:

  • (instance)


14
# File 'sig/panel.rbs', line 14

def self.new: (String | Symbol id, String title, untyped icon, dock dock, ^() -> untyped build, untyped badge) -> instance