Class: YDoc::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/appcom-ydoc-ruby/config.rb

Constant Summary collapse

ATTRIBUTES =
[:name, :verbose, :output_dir, :temp_dir, :input_dir]

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Config

Returns a new instance of Config.



6
7
8
9
10
# File 'lib/appcom-ydoc-ruby/config.rb', line 6

def initialize options = {}
  options.each { |key, value|
    instance_variable_set("@#{key.to_s}", value) if ATTRIBUTES.include?(key.to_sym)
  }
end