Class: OpenSource::License
- Inherits:
-
Object
- Object
- OpenSource::License
- Defined in:
- lib/open_source/license.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ License
constructor
A new instance of License.
- #process ⇒ Object
Constructor Details
#initialize(options) ⇒ License
Returns a new instance of License.
5 6 7 8 9 |
# File 'lib/open_source/license.rb', line 5 def initialize() @options = @user = Owner.get_credentials @license = ERB.new(File.read("#{File.("../../../templates", __FILE__)}/#{@options[:license]}.erb")).result(binding) end |
Instance Method Details
#process ⇒ Object
11 12 13 14 |
# File 'lib/open_source/license.rb', line 11 def process generate append if @options[:append] end |