Sha256: d3945ff2ec96ed207891914657df6299c82ed1d1c88941dfa0a2991b69e73d84

Contents?: true

Size: 734 Bytes

Versions: 2

Compression:

Stored size: 734 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:\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 = (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

2 entries across 2 versions & 1 rubygems

Version Path
aruba-1.0.0.pre.alpha.2 lib/aruba/console/help.rb
aruba-1.0.0.pre.alpha.1 lib/aruba/console/help.rb