tinkerforge 2.1.6 → 2.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tinkerforge/brick_dc.rb +2 -2
- data/lib/tinkerforge/brick_imu.rb +2 -2
- data/lib/tinkerforge/brick_imu_v2.rb +2 -2
- data/lib/tinkerforge/brick_master.rb +2 -2
- data/lib/tinkerforge/brick_red.rb +2 -2
- data/lib/tinkerforge/brick_servo.rb +2 -2
- data/lib/tinkerforge/brick_stepper.rb +2 -2
- data/lib/tinkerforge/bricklet_accelerometer.rb +2 -2
- data/lib/tinkerforge/bricklet_ambient_light.rb +2 -2
- data/lib/tinkerforge/bricklet_ambient_light_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_in.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_in_v2.rb +3 -3
- data/lib/tinkerforge/bricklet_analog_out.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_out_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_barometer.rb +2 -2
- data/lib/tinkerforge/bricklet_co2.rb +158 -0
- data/lib/tinkerforge/bricklet_color.rb +2 -2
- data/lib/tinkerforge/bricklet_current12.rb +2 -2
- data/lib/tinkerforge/bricklet_current25.rb +2 -2
- data/lib/tinkerforge/bricklet_distance_ir.rb +2 -2
- data/lib/tinkerforge/bricklet_distance_us.rb +2 -2
- data/lib/tinkerforge/bricklet_dual_button.rb +2 -2
- data/lib/tinkerforge/bricklet_dual_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_dust_detector.rb +2 -2
- data/lib/tinkerforge/bricklet_gps.rb +2 -2
- data/lib/tinkerforge/bricklet_hall_effect.rb +2 -2
- data/lib/tinkerforge/bricklet_humidity.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_analog_out.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_dual_analog_in.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_io16.rb +2 -2
- data/lib/tinkerforge/bricklet_io4.rb +2 -2
- data/lib/tinkerforge/bricklet_joystick.rb +2 -2
- data/lib/tinkerforge/bricklet_laser_range_finder.rb +2 -2
- data/lib/tinkerforge/bricklet_lcd_16x2.rb +5 -4
- data/lib/tinkerforge/bricklet_lcd_20x4.rb +6 -5
- data/lib/tinkerforge/bricklet_led_strip.rb +2 -2
- data/lib/tinkerforge/bricklet_line.rb +2 -2
- data/lib/tinkerforge/bricklet_linear_poti.rb +2 -2
- data/lib/tinkerforge/bricklet_load_cell.rb +2 -2
- data/lib/tinkerforge/bricklet_moisture.rb +2 -2
- data/lib/tinkerforge/bricklet_motion_detector.rb +2 -2
- data/lib/tinkerforge/bricklet_multi_touch.rb +2 -2
- data/lib/tinkerforge/bricklet_nfc_rfid.rb +2 -2
- data/lib/tinkerforge/bricklet_oled_128x64.rb +124 -0
- data/lib/tinkerforge/bricklet_oled_64x48.rb +123 -0
- data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
- data/lib/tinkerforge/bricklet_piezo_speaker.rb +2 -2
- data/lib/tinkerforge/bricklet_ptc.rb +2 -2
- data/lib/tinkerforge/bricklet_remote_switch.rb +2 -2
- data/lib/tinkerforge/bricklet_rotary_encoder.rb +2 -2
- data/lib/tinkerforge/bricklet_rotary_poti.rb +2 -2
- data/lib/tinkerforge/bricklet_rs232.rb +2 -2
- data/lib/tinkerforge/bricklet_segment_display_4x7.rb +2 -2
- data/lib/tinkerforge/bricklet_solid_state_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_sound_intensity.rb +2 -2
- data/lib/tinkerforge/bricklet_temperature.rb +2 -2
- data/lib/tinkerforge/bricklet_temperature_ir.rb +2 -2
- data/lib/tinkerforge/bricklet_thermocouple.rb +235 -0
- data/lib/tinkerforge/bricklet_tilt.rb +2 -2
- data/lib/tinkerforge/bricklet_uv_light.rb +160 -0
- data/lib/tinkerforge/bricklet_voltage.rb +2 -2
- data/lib/tinkerforge/bricklet_voltage_current.rb +2 -2
- data/lib/tinkerforge/version.rb +1 -1
- metadata +7 -2
data/lib/tinkerforge/brick_dc.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -221,7 +221,7 @@ module Tinkerforge
|
|
221
221
|
end
|
222
222
|
|
223
223
|
# Sets the length of a `moving averaging <https://en.wikipedia.org/wiki/Moving_average>`__
|
224
|
-
# for the
|
224
|
+
# for the voltage.
|
225
225
|
#
|
226
226
|
# Setting the length to 1 will turn the averaging off. With less
|
227
227
|
# averaging, there is more noise on the data.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -0,0 +1,158 @@
|
|
1
|
+
# -*- ruby encoding: utf-8 -*-
|
2
|
+
#############################################################
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
|
+
# #
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
|
+
# #
|
7
|
+
# If you have a bugfix for this file and want to commit it, #
|
8
|
+
# please fix the bug in the generator. You can find a link #
|
9
|
+
# to the generators git repository on tinkerforge.com #
|
10
|
+
#############################################################
|
11
|
+
|
12
|
+
module Tinkerforge
|
13
|
+
# Measures CO2 concentration in ppm
|
14
|
+
class BrickletCO2 < Device
|
15
|
+
DEVICE_IDENTIFIER = 262 # :nodoc:
|
16
|
+
DEVICE_DISPLAY_NAME = 'CO2 Bricklet' # :nodoc:
|
17
|
+
|
18
|
+
# This callback is triggered periodically with the period that is set by
|
19
|
+
# BrickletCO2#set_co2_concentration_callback_period. The parameter is the CO2 concentration of the
|
20
|
+
# sensor.
|
21
|
+
#
|
22
|
+
# CALLBACK_CO2_CONCENTRATION is only triggered if the CO2 concentration has changed since the
|
23
|
+
# last triggering.
|
24
|
+
CALLBACK_CO2_CONCENTRATION = 8
|
25
|
+
|
26
|
+
# This callback is triggered when the threshold as set by
|
27
|
+
# BrickletCO2#set_co2_concentration_callback_threshold is reached.
|
28
|
+
# The parameter is the CO2 concentration.
|
29
|
+
#
|
30
|
+
# If the threshold keeps being reached, the callback is triggered periodically
|
31
|
+
# with the period as set by BrickletCO2#set_debounce_period.
|
32
|
+
CALLBACK_CO2_CONCENTRATION_REACHED = 9
|
33
|
+
|
34
|
+
FUNCTION_GET_CO2_CONCENTRATION = 1 # :nodoc:
|
35
|
+
FUNCTION_SET_CO2_CONCENTRATION_CALLBACK_PERIOD = 2 # :nodoc:
|
36
|
+
FUNCTION_GET_CO2_CONCENTRATION_CALLBACK_PERIOD = 3 # :nodoc:
|
37
|
+
FUNCTION_SET_CO2_CONCENTRATION_CALLBACK_THRESHOLD = 4 # :nodoc:
|
38
|
+
FUNCTION_GET_CO2_CONCENTRATION_CALLBACK_THRESHOLD = 5 # :nodoc:
|
39
|
+
FUNCTION_SET_DEBOUNCE_PERIOD = 6 # :nodoc:
|
40
|
+
FUNCTION_GET_DEBOUNCE_PERIOD = 7 # :nodoc:
|
41
|
+
FUNCTION_GET_IDENTITY = 255 # :nodoc:
|
42
|
+
|
43
|
+
THRESHOLD_OPTION_OFF = 'x' # :nodoc:
|
44
|
+
THRESHOLD_OPTION_OUTSIDE = 'o' # :nodoc:
|
45
|
+
THRESHOLD_OPTION_INSIDE = 'i' # :nodoc:
|
46
|
+
THRESHOLD_OPTION_SMALLER = '<' # :nodoc:
|
47
|
+
THRESHOLD_OPTION_GREATER = '>' # :nodoc:
|
48
|
+
|
49
|
+
# Creates an object with the unique device ID <tt>uid</tt> and adds it to
|
50
|
+
# the IP Connection <tt>ipcon</tt>.
|
51
|
+
def initialize(uid, ipcon)
|
52
|
+
super uid, ipcon
|
53
|
+
|
54
|
+
@api_version = [2, 0, 0]
|
55
|
+
|
56
|
+
@response_expected[FUNCTION_GET_CO2_CONCENTRATION] = RESPONSE_EXPECTED_ALWAYS_TRUE
|
57
|
+
@response_expected[FUNCTION_SET_CO2_CONCENTRATION_CALLBACK_PERIOD] = RESPONSE_EXPECTED_TRUE
|
58
|
+
@response_expected[FUNCTION_GET_CO2_CONCENTRATION_CALLBACK_PERIOD] = RESPONSE_EXPECTED_ALWAYS_TRUE
|
59
|
+
@response_expected[FUNCTION_SET_CO2_CONCENTRATION_CALLBACK_THRESHOLD] = RESPONSE_EXPECTED_TRUE
|
60
|
+
@response_expected[FUNCTION_GET_CO2_CONCENTRATION_CALLBACK_THRESHOLD] = RESPONSE_EXPECTED_ALWAYS_TRUE
|
61
|
+
@response_expected[FUNCTION_SET_DEBOUNCE_PERIOD] = RESPONSE_EXPECTED_TRUE
|
62
|
+
@response_expected[FUNCTION_GET_DEBOUNCE_PERIOD] = RESPONSE_EXPECTED_ALWAYS_TRUE
|
63
|
+
@response_expected[CALLBACK_CO2_CONCENTRATION] = RESPONSE_EXPECTED_ALWAYS_FALSE
|
64
|
+
@response_expected[CALLBACK_CO2_CONCENTRATION_REACHED] = RESPONSE_EXPECTED_ALWAYS_FALSE
|
65
|
+
@response_expected[FUNCTION_GET_IDENTITY] = RESPONSE_EXPECTED_ALWAYS_TRUE
|
66
|
+
|
67
|
+
@callback_formats[CALLBACK_CO2_CONCENTRATION] = 'S'
|
68
|
+
@callback_formats[CALLBACK_CO2_CONCENTRATION_REACHED] = 'S'
|
69
|
+
end
|
70
|
+
|
71
|
+
# Returns the measured CO2 concentration. The value is in
|
72
|
+
# `ppm (parts per million) <https://en.wikipedia.org/wiki/Parts-per_notation>`__
|
73
|
+
# and between 0 to 10000.
|
74
|
+
#
|
75
|
+
# If you want to get the CO2 concentration periodically, it is recommended to use the
|
76
|
+
# callback CALLBACK_CO2_CONCENTRATION and set the period with
|
77
|
+
# BrickletCO2#set_co2_concentration_callback_period.
|
78
|
+
def get_co2_concentration
|
79
|
+
send_request(FUNCTION_GET_CO2_CONCENTRATION, [], '', 2, 'S')
|
80
|
+
end
|
81
|
+
|
82
|
+
# Sets the period in ms with which the CALLBACK_CO2_CONCENTRATION callback is triggered
|
83
|
+
# periodically. A value of 0 turns the callback off.
|
84
|
+
#
|
85
|
+
# CALLBACK_CO2_CONCENTRATION is only triggered if the CO2 concentration has changed since the
|
86
|
+
# last triggering.
|
87
|
+
#
|
88
|
+
# The default value is 0.
|
89
|
+
def set_co2_concentration_callback_period(period)
|
90
|
+
send_request(FUNCTION_SET_CO2_CONCENTRATION_CALLBACK_PERIOD, [period], 'L', 0, '')
|
91
|
+
end
|
92
|
+
|
93
|
+
# Returns the period as set by BrickletCO2#set_co2_concentration_callback_period.
|
94
|
+
def get_co2_concentration_callback_period
|
95
|
+
send_request(FUNCTION_GET_CO2_CONCENTRATION_CALLBACK_PERIOD, [], '', 4, 'L')
|
96
|
+
end
|
97
|
+
|
98
|
+
# Sets the thresholds for the CALLBACK_CO2_CONCENTRATION_REACHED callback.
|
99
|
+
#
|
100
|
+
# The following options are possible:
|
101
|
+
#
|
102
|
+
# "Option", "Description"
|
103
|
+
#
|
104
|
+
# "'x'", "Callback is turned off"
|
105
|
+
# "'o'", "Callback is triggered when the CO2 concentration is *outside* the min and max values"
|
106
|
+
# "'i'", "Callback is triggered when the CO2 concentration is *inside* the min and max values"
|
107
|
+
# "'<'", "Callback is triggered when the CO2 concentration is smaller than the min value (max is ignored)"
|
108
|
+
# "'>'", "Callback is triggered when the CO2 concentration is greater than the min value (max is ignored)"
|
109
|
+
#
|
110
|
+
# The default value is ('x', 0, 0).
|
111
|
+
def set_co2_concentration_callback_threshold(option, min, max)
|
112
|
+
send_request(FUNCTION_SET_CO2_CONCENTRATION_CALLBACK_THRESHOLD, [option, min, max], 'k S S', 0, '')
|
113
|
+
end
|
114
|
+
|
115
|
+
# Returns the threshold as set by BrickletCO2#set_co2_concentration_callback_threshold.
|
116
|
+
def get_co2_concentration_callback_threshold
|
117
|
+
send_request(FUNCTION_GET_CO2_CONCENTRATION_CALLBACK_THRESHOLD, [], '', 5, 'k S S')
|
118
|
+
end
|
119
|
+
|
120
|
+
# Sets the period in ms with which the threshold callbacks
|
121
|
+
#
|
122
|
+
# * CALLBACK_CO2_CONCENTRATION_REACHED,
|
123
|
+
#
|
124
|
+
# are triggered, if the thresholds
|
125
|
+
#
|
126
|
+
# * BrickletCO2#set_co2_concentration_callback_threshold,
|
127
|
+
#
|
128
|
+
# keep being reached.
|
129
|
+
#
|
130
|
+
# The default value is 100.
|
131
|
+
def set_debounce_period(debounce)
|
132
|
+
send_request(FUNCTION_SET_DEBOUNCE_PERIOD, [debounce], 'L', 0, '')
|
133
|
+
end
|
134
|
+
|
135
|
+
# Returns the debounce period as set by BrickletCO2#set_debounce_period.
|
136
|
+
def get_debounce_period
|
137
|
+
send_request(FUNCTION_GET_DEBOUNCE_PERIOD, [], '', 4, 'L')
|
138
|
+
end
|
139
|
+
|
140
|
+
# Returns the UID, the UID where the Bricklet is connected to,
|
141
|
+
# the position, the hardware and firmware version as well as the
|
142
|
+
# device identifier.
|
143
|
+
#
|
144
|
+
# The position can be 'a', 'b', 'c' or 'd'.
|
145
|
+
#
|
146
|
+
# The device identifier numbers can be found :ref:`here <device_identifier>`.
|
147
|
+
# |device_identifier_constant|
|
148
|
+
def get_identity
|
149
|
+
send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
|
150
|
+
end
|
151
|
+
|
152
|
+
# Registers a callback with ID <tt>id</tt> to the block <tt>block</tt>.
|
153
|
+
def register_callback(id, &block)
|
154
|
+
callback = block
|
155
|
+
@registered_callbacks[id] = callback
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on
|
3
|
+
# This file was automatically generated on 2016-01-06. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.7 #
|
6
6
|
# #
|
7
7
|
# If you have a bugfix for this file and want to commit it, #
|
8
8
|
# please fix the bug in the generator. You can find a link #
|