Sha256: a94c42feffd0ec00b1835e58299e691c43a66b0714dc9c055ded193ca751e149

Contents?: true

Size: 725 Bytes

Versions: 10

Compression:

Stored size: 725 Bytes

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:"
        puts "* http://www.rubydoc.info/gems/aruba"
        puts

        nil
      end

      # List available methods in aruba
      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
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/console/help.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/console/help.rb
aruba-2.2.0 lib/aruba/console/help.rb
aruba-2.1.0 lib/aruba/console/help.rb
aruba-2.0.1 lib/aruba/console/help.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/aruba-2.0.0/lib/aruba/console/help.rb
aruba-2.0.0 lib/aruba/console/help.rb
aruba-1.1.2 lib/aruba/console/help.rb
aruba-1.1.1 lib/aruba/console/help.rb
aruba-1.1.0 lib/aruba/console/help.rb