Module: Axiom::Types::Options
Overview
A module that adds class and instance level options
Defined Under Namespace
Classes: ReservedMethodError
Instance Method Summary collapse
-
#accept_options(*new_options) ⇒ self
Defines which options are valid for a given attribute class.
Instance Method Details
#accept_options(*new_options) ⇒ self
Defines which options are valid for a given attribute class
22 23 24 25 26 27 28 29 |
# File 'lib/axiom/types/support/options.rb', line 22 def (*) ( - ).each do |new_option| assert_method_available(new_option) define_option_method(new_option) setup_option(new_option) end self end |