lib/hal_client/representation.rb
# Returns The value of the specified property or the specified
#   default value.
#
# name - The name of property of interest
# default - an optional object that should be return if the
#   specified property does not exist
# default_proc - an option proc that will be called with `name`
#  to produce default value if the specified property does not
#  exist
#
# Raises KeyError if the specified property does not exist
#   and no default nor default_proc is provided.
Returns The value of the specified property or the specified
default value.

The name of property of interest
default - an optional object that should be return if the
specified property does not exist
default_proc - an option proc that will be called with `name`
to produce default value if the specified property does not
exist

Raises KeyError if the specified property does not exist
and no default nor default_proc is provided.
Returns The value of the specified property or the specified default value . The name of property of interest default - an optional object that should be return if the specified property does not exist default_proc - an option proc that will be called with ` name ` to produce default value if the specified property does not exist Raises KeyError if the specified property does not exist and no default nor default_proc is provided .
def property(name, default=MISSING, &default_proc)
      ensure_reified
      default_proc ||= ->(_){ default} if default != MISSING
      properties.fetch(name.to_s, &default_proc)
    end
def property ( name , default = MISSING , & default_proc ) ensure_reified default_proc ||= -> ( _ ) { default } if default != MISSING properties . fetch ( name . to_s , & default_proc ) end
Returns The value of the specified property or the specified
default value.
Returns The value of the specified property or the specified default value .
name
<not_specific>
default
<not_specific>
default_proc
<not_specific>