Download and Configure Aspose.Cells in Ruby

Download Required Libraries

Download required libraries mentioned below. These are required for executing Aspose.Cells Java for Ruby examples.

Download Examples from Social Coding Sites

The following runnable examples are available for download on the social coding sites mentioned below:

GitHub

Installing

It is very simple and easy to install Aspose.Cells Java for Ruby gem; please follow these simple steps:

  1. Add this line to your application’s Gemfile.
gem 'aspose-cellsjava'
  1. And then execute
$ bundle

OR

  1. Run the following command.
$ gem install aspose-cellsjava

Using

Include the required files for working with the HelloWorld example.

require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/aspose-cellsjava'

include AsposeCellsJava
include AsposeCellsJava::HelloWorld

initialize_aspose_cells

Let’s understand the above code.

  1. The first line makes sure that the Aspose.Cells library is loaded and available.
  2. Include the files required to access Aspose.Cells.
  3. Initialize the libraries. The Aspose Java classes are loaded from the path provided in the aspose.yml file.