Method: JSON::LD::Utils#index?

Defined in:
lib/json/ld/utils.rb

#index?(value) ⇒ Boolean

Is value annotated?

Parameters:

  • value (Object)

Returns:

  • (Boolean)


87
88
89
# File 'lib/json/ld/utils.rb', line 87

def index?(value)
  value.is_a?(Hash) && value.key?('@index')
end