class Devpad::CLI::Commands::Language::List
Public Class Methods
new(shell:)
click to toggle source
# File lib/devpad/cli/commands/language/list.rb, line 6 def initialize(shell:) @shell = shell end
Public Instance Methods
execute()
click to toggle source
# File lib/devpad/cli/commands/language/list.rb, line 10 def execute rows = Devpad::API::Language.all.each_with_index.map do |language| [language.id, language.name, language.color] end @shell.print_table rows end