Method: Train::Options::ClassOptions#include_options

Defined in:
lib/train/options.rb

#include_options(other) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/train/options.rb', line 38

def include_options(other)
  unless other.respond_to?(:default_options)
    raise "Trying to include options from module #{other.inspect}, "\
         "which doesn't seem to support options."
  end
  default_options.merge!(other.default_options)
end