Class: RubyZen

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-zen.rb

Class Method Summary collapse

Class Method Details

.langsObject



12
13
14
15
# File 'lib/ruby-zen.rb', line 12

def self.langs
  langs = Params::LANGS
  puts "Available langs: #{langs.join(', ')}"
end

.show(options) ⇒ Object



17
18
19
20
21
# File 'lib/ruby-zen.rb', line 17

def self.show(options)
  lang = options['lang']&.to_sym || :en
  app = Application.new(lang)
  Rules.new(app).show(options)
end

.versionObject



8
9
10
# File 'lib/ruby-zen.rb', line 8

def self.version
  puts "#{Params::NAME} (version #{Params::VERSION})"
end