module XMLable::Mixins::Castable::ClassMethods

Constants

CAST_METHODS

@return [Array<Symbol>] retuns list of the setup methods

Public Instance Methods

method_missing(name, *args, &block) click to toggle source

Override method missing to get the setup methods be available

@see XMLable::Mixins::Castable::ClassMethods::CAST_METHODS

Calls superclass method
# File lib/xmlable/mixins/castable.rb, line 86
def method_missing(name, *args, &block)
  return super unless CAST_METHODS.include?(name)
  define_method("__#{name}", &block) if block_given?
end