Sha256: 3244a187a08224cc650371c97f3f20bfd7cd817b40c2d1863e77f8a3ffd713de

Contents?: true

Size: 1.01 KB

Versions: 24

Compression:

Stored size: 1.01 KB

Contents

require 'aruba/api'

# Aruba
module Aruba
  # Consule
  class Console
    # Helpers for Aruba::Console
    module Help
      # Output help information
      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

      # List available methods in aruba
      def aruba_methods
        ms = if RUBY_VERSION < '1.9'
               # rubocop:disable Style/EachWithObject
               (Aruba::Api.instance_methods - Module.instance_methods).inject([]) { |a, e| a << format("* %s", e); a }.sort
               # rubocop:enable Style/EachWithObject
             else
               (Aruba::Api.instance_methods - Module.instance_methods).each_with_object([]) { |e, a| a << format("* %s", e) }.sort
             end

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

        nil
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
aruba-0.14.14 lib/aruba/console/help.rb
aruba-0.14.13 lib/aruba/console/help.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/aruba-0.14.12/lib/aruba/console/help.rb
aruba-0.14.12 lib/aruba/console/help.rb
aruba-0.14.11 lib/aruba/console/help.rb
aruba-0.14.10 lib/aruba/console/help.rb
aruba-0.14.9 lib/aruba/console/help.rb
aruba-0.14.8 lib/aruba/console/help.rb
aruba-0.14.7 lib/aruba/console/help.rb
aruba-0.14.6 lib/aruba/console/help.rb
aruba-0.14.5 lib/aruba/console/help.rb
aruba-0.14.4 lib/aruba/console/help.rb
aruba-0.14.3 lib/aruba/console/help.rb
aruba-win-fix-0.14.2 lib/aruba/console/help.rb
aruba-0.14.2 lib/aruba/console/help.rb
aruba-0.14.1 lib/aruba/console/help.rb
aruba-0.14.0 lib/aruba/console/help.rb
aruba-0.13.0 lib/aruba/console/help.rb
aruba-0.12.0 lib/aruba/console/help.rb
aruba-0.11.2 lib/aruba/console/help.rb