MCPcopy Create free account
hub / github.com/code-dot-org/code-dot-org / value

Method value

dashboard/lib/json_value.rb:19–29  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

17 end
18
19 def self.value(val)
20 if integral?(val)
21 Integer(val)
22 elsif numeric?(val)
23 Float(val)
24 elsif boolean?(val)
25 val == boolean_string_true
26 else
27 val
28 end
29 end
30
31 def self.boolean_string_true
32 'true'

Callers 15

get_valueFunction · 0.80
timestamped_runFunction · 0.80
[]Method · 0.80
method_missingMethod · 0.80
lazyMethod · 0.80
current_stack_nameMethod · 0.80
tasks_by_frequencyMethod · 0.80
test_getMethod · 0.80

Calls

no outgoing calls

Tested by 3

timestamped_runFunction · 0.64
test_getMethod · 0.64
run_testsFunction · 0.64