class NPM2Gem::Config

Public Class Methods

new() click to toggle source
# File lib/npm2gem/config.rb, line 5
def initialize
  @yaml_file = YAML.load_file(".npm2gem.yml")
end

Public Instance Methods

files_to_copy() click to toggle source

This is an array, of either:

- file names, or
- a hash: { destination_subfolder: files }
# File lib/npm2gem/config.rb, line 17
def files_to_copy
  @yaml_file[package_name]
end
package_name() click to toggle source

TODO: support more than one?

# File lib/npm2gem/config.rb, line 10
def package_name
  @yaml_file.keys.first
end