---
title: "Apply License in Ruby"
---


## Aspose.Words - Apply License

To set license of Aspose.Words Java in Ruby, simply invoke the apply_license() method of ApplyLicense module.

**Ruby Code**

{{< highlight ruby >}}
license = Rjb::import('com.aspose.words.License').new()
license.setLicense('Aspose.Words.lic')
{{< /highlight >}}

## Download Running Code

Download **Apply License (Aspose.Words)** from any of the below mentioned social coding sites:

- [GitHub](https://github.com/aspose-words/Aspose.Words-for-Java/blob/master/Plugins/Aspose_Words_Java_for_Ruby/lib/asposewordsjavaforruby/applylicense.rb)
