Method: Chef::Mixin::Properties::ClassMethods#property_type

Defined in:
lib/chef/mixin/properties.rb

#property_type(**options) ⇒ Object

Create a reusable property type that can be used in multiple properties in different resources.

Examples:

property_type(default: 'hi')

Parameters:

  • options (Hash<Symbol,Object>)

    Validation options. see #property for the list of options.



150
151
152
# File 'lib/chef/mixin/properties.rb', line 150

def property_type(**options)
  Property.derive(**options)
end