lib/arstotzka/options.rb in arstotzka-1.4.4 vs lib/arstotzka/options.rb in arstotzka-1.5.0
- old
+ new
@@ -241,10 +241,12 @@
# instance.customers # returns %w[
# # John Bobby Maria
# # Danny LJ Robert Richard
# # Linda Ariel
# # ]
- class Options < ::OpenStruct
+ class Options < Sinclair::Options
+ with_options Config::DEFAULT_CONFIGS
+ with_options :full_path, :key, :instance, :path
# Creates a new instance of Options
#
# @param options_hash [Hash] options hash
# Options hash are initialized when using {ClassMethods#expose}
#