Sha256: a4d1cbeb10e851e861e8db1660ab9281f996d74721af22aca7234bbdc938b1dc

Contents?: true

Size: 1.36 KB

Versions: 6

Compression:

Stored size: 1.36 KB

Contents

module Pantograph
  module Actions
    class RocketAction < Action
      def self.run(params)
        puts("
        ____
       /    \\
      |      |
      |      |
      |      |
       \\____/
       |    |
       |    |
       |    |
       |____|
      {|    |}
       |    |
       |    |
       | F  |
       | A  |
       | S  |
       | T  |
       | L  |
       | A  |
      /| N  |\\
      || E  ||
      ||    ||
      \\|____|/
       /_\\/_\\
       ######
      ########
       ######
        ####
        ####
         ##
         ##
         ##
         ##
         ")
        return "🚀"
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Outputs ascii-art for a rocket 🚀"
      end

      def self.details
        "Print an ascii Rocket :rocket:. Useful to indicate that your new build has been shipped to outer-space."
      end

      def self.available_options
        [
        ]
      end

      def self.authors
        ["JaviSoto", "radex"]
      end

      def self.is_supported?(platform)
        true
      end

      def self.example_code
        [
          'rocket'
        ]
      end

      def self.return_type
        :string
      end

      def self.category
        :misc
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pantograph-0.1.22 pantograph/lib/pantograph/actions/rocket.rb
pantograph-0.1.21 pantograph/lib/pantograph/actions/rocket.rb
pantograph-0.1.20 pantograph/lib/pantograph/actions/rocket.rb
pantograph-0.1.19 pantograph/lib/pantograph/actions/rocket.rb
pantograph-0.1.17 pantograph/lib/pantograph/actions/rocket.rb
pantograph-0.1.16 pantograph/lib/pantograph/actions/rocket.rb