class EmbeddedJs::Config
Constants
- DEFAULT_CONFIG_PATH
Attributes
gems[RW]
package_manager[RW]
Public Class Methods
load(config_path: DEFAULT_CONFIG_PATH)
click to toggle source
# File lib/embedded_js/config.rb, line 10 def load(config_path: DEFAULT_CONFIG_PATH) new(**JSON.parse(File.read(config_path), symbolize_names: true)) end
new(package_manager: :npm, gems: [])
click to toggle source
# File lib/embedded_js/config.rb, line 17 def initialize(package_manager: :npm, gems: []) @gems = gems @package_manager = package_manager.to_sym end