Module: Plushie::DSL::Buildable::ClassMethods Private

Defined in:
lib/plushie/dsl/buildable.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class methods added by Buildable.

Instance Method Summary collapse

Instance Method Details

#field_keysArray<Symbol>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Override in implementing module.

Returns:

  • (Array<Symbol>)

    valid field names

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/plushie/dsl/buildable.rb', line 36

def field_keys
  raise NotImplementedError, "#{self} must define .field_keys"
end

#field_typesHash{Symbol => Module}

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Override in implementing module.

Returns:

  • (Hash{Symbol => Module})

    nested type modules for recursive do-blocks



42
43
44
# File 'lib/plushie/dsl/buildable.rb', line 42

def field_types
  {}
end