module Temple::Mixins::Options

@api public

Attributes

options[R]

Public Class Methods

included(base) click to toggle source
# File lib/temple/mixins/options.rb, line 72
def self.included(base)
  base.class_eval do
    extend ClassOptions
    extend ThreadOptions
  end
end
new(opts = {}) click to toggle source
# File lib/temple/mixins/options.rb, line 81
def initialize(opts = {})
  self.class.options.validate_map!(opts)
  self.class.options.validate_map!(self.class.thread_options) if self.class.thread_options
  @options = ImmutableMap.new({}.update(self.class.options).update(self.class.thread_options || {}).update(opts))
end