module XMLable::Mixins::OptionsStorage::ClassMethods

Public Instance Methods

__options() click to toggle source

Get the options storage

@api private

@return [XMLable::Options::Strage]

# File lib/xmlable/mixins/options_storage.rb, line 33
def __options
  @__options ||= __nested(:@__options) || Options::Storage.new
end
before_export(&block) click to toggle source

Set the before export options

# File lib/xmlable/mixins/options_storage.rb, line 22
def before_export(&block)
  __options.opt_set(:before_export, block) if block_given?
end
on_export(*args) click to toggle source

Set the export options

# File lib/xmlable/mixins/options_storage.rb, line 15
def on_export(*args)
  args.each { |opt| __options.opt_set(opt, true) }
end