Class: Ducky::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/ducky/cli.rb

Instance Method Summary collapse

Instance Method Details

#core(method, version = RUBY_VERSION) ⇒ Object



8
9
10
# File 'lib/ducky/cli.rb', line 8

def core(method, version = RUBY_VERSION)
  puts Ducky.lookup(:core, method, version)
end

#gem(name, method, version = :guess) ⇒ Object



20
21
22
# File 'lib/ducky/cli.rb', line 20

def gem(name, method, version = :guess)
  puts Ducky.lookup(:gem, name, method, version)
end

#stdlib(lib, method, version = RUBY_VERSION) ⇒ Object



14
15
16
# File 'lib/ducky/cli.rb', line 14

def stdlib(lib, method, version = RUBY_VERSION)
  puts Ducky.lookup(:stdlib, lib, method, version)
end