Module: JSONSelect::TypeHelpers

Defined in:
lib/json_select/helpers/type.rb

Instance Method Summary collapse

Instance Method Details

#format_instance_of_type(test) ⇒ Object



7
8
9
# File 'lib/json_select/helpers/type.rb', line 7

def format_instance_of_type(test)
  test[:n].to_s
end

#instance_of_type(object, test, key, idx, size, depth) ⇒ Object



3
4
5
# File 'lib/json_select/helpers/type.rb', line 3

def instance_of_type(object, test, key, idx, size, depth)
  test[:n] == type_of(object)
end