Class: YDoc::Config
- Inherits:
-
Object
- Object
- YDoc::Config
- Defined in:
- lib/appcom-ydoc-ruby/config.rb
Constant Summary collapse
- ATTRIBUTES =
[:name, :verbose, :output_dir, :temp_dir, :input_dir]
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
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 = {} .each { |key, value| instance_variable_set("@#{key.to_s}", value) if ATTRIBUTES.include?(key.to_sym) } end |