Module: Aruba::Console::Help

Defined in:
lib/aruba/console/help.rb

Overview

Helpers for Aruba::Console

Instance Method Summary collapse

Instance Method Details

#aruba_helpObject

Output help information


10
11
12
13
14
15
16
17
# File 'lib/aruba/console/help.rb', line 10

def aruba_help
  puts 'Aruba Version: ' + Aruba::VERSION
  puts 'Issue Tracker: ' + 'https://github.com/cucumber/aruba/issues'
  puts "Documentation:\n" + %w(http://www.rubydoc.info/gems/aruba).map { |d| format('* %s', d) }.join("\n")
  puts

  nil
end

#aruba_methodsObject

List available methods in aruba


20
21
22
23
24
25
26
# File 'lib/aruba/console/help.rb', line 20

def aruba_methods
  ms = (Aruba::Api.instance_methods - Module.instance_methods).each_with_object([]) { |e, a| a << format("* %s", e) }.sort

  puts "Available Methods:\n" + ms.join("\n")

  nil
end