Sha256: 27f2c1d4095ba4b9552653fc98f0aa2f010762426f818dc26bd67d72a64447c5

Contents?: true

Size: 730 Bytes

Versions: 2

Compression:

Stored size: 730 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

2 entries across 2 versions & 1 rubygems

Version Path
aruba-1.0.2 lib/aruba/console/help.rb
aruba-1.0.1 lib/aruba/console/help.rb