Top Level Namespace
Defined Under Namespace
Modules: InternalScalarisNopClose, InternalScalarisSimpleError, Scalaroid
Classes: Float
Instance Method Summary
collapse
Instance Method Details
#add_del_on_list(sc, key_value_list) ⇒ Object
48
49
50
51
52
53
54
55
56
|
# File 'bin/scalaroid', line 48
def add_del_on_list(sc, key_value_list)
begin
key, to_add, to_remove = key_value_list
sc.add_del_on_list(key, to_add, to_remove)
rescue Scalaris::NotAListError
$stderr.print "Error: " + $!.to_s.to_json + "\n"
exit
end
end
|
#add_on_nr(sc, key_value_list) ⇒ Object
38
39
40
41
42
43
44
45
46
|
# File 'bin/scalaroid', line 38
def add_on_nr(sc, key_value_list)
begin
key, to_add = key_value_list
sc.add_on_nr(key, to_add)
rescue Scalaris::NotANumberError
$stderr.print "Error: " + $!.to_s.to_json + "\n"
exit
end
end
|
#test_and_set(sc, key_value_list) ⇒ Object
33
34
35
36
|
# File 'bin/scalaroid', line 33
def test_and_set(sc, key_value_list)
key, old_value, new_value = key_value_list
sc.test_and_set(key, old_value, new_value)
end
|
#write(sc, key_value_list) ⇒ Object
28
29
30
31
|
# File 'bin/scalaroid', line 28
def write(sc, key_value_list)
key, value = key_value_list
sc.write(key, value)
end
|