class Copypasta::Settings

Attributes

parameter_definitions[R]

Public Class Methods

from_file(path) click to toggle source
# File lib/copypasta/settings.rb, line 13
def self.from_file(path)
  require "copypasta/settings_dsl"
  raise "#{path} doesn't exist." unless File.exist?(path)

  dsl = Copypasta::SettingsDSL.new
  dsl.instance_eval File.read(path), path
  dsl.settings
end
new() click to toggle source
# File lib/copypasta/settings.rb, line 9
def initialize
  @parameter_definitions = {}
end