Class: Canopus::Command::Definition

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#category ⇒ Object (readonly)

Returns the value of attribute category

Returns:

  • (Object) —

    the current value of category



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

def category
  @category
end

#id ⇒ Object (readonly)

Returns the value of attribute id

Returns:

  • (Object) —

    the current value of id



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

def id
  @id
end

#keybinding ⇒ Object (readonly)

Returns the value of attribute keybinding

Returns:

  • (Object) —

    the current value of keybinding



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

def keybinding
  @keybinding
end

#run ⇒ Object (readonly)

Returns the value of attribute run

Returns:

  • (Object) —

    the current value of run



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

def run
  @run
end

#title ⇒ Object (readonly)

Returns the value of attribute title

Returns:

  • (Object) —

    the current value of title



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

def title
  @title
end

#when ⇒ Object (readonly)

Returns the value of attribute when

Returns:

  • (Object) —

    the current value of when



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

def when
  @when
end

Class Method Details

.new ⇒ instance

Parameters:

  • id (String)
  • title (String)
  • category (String)
  • when (String)
  • keybinding (keybinding)

Returns:

  • (instance)


15
# File 'sig/command.rbs', line 15

def self.new: (String id, String title, String category, String when, ^(*untyped) -> untyped run, keybinding keybinding) -> instance