| Class | Wee::Brush::RadioGroup |
| In: |
lib/wee/html_brushes.rb
|
| Parent: | Object |
# File lib/wee/html_brushes.rb, line 546 def initialize(canvas) @name = canvas.register_callback(:input, self) @callbacks = {} @ids = Wee::SequentialIdGenerator.new end
# File lib/wee/html_brushes.rb, line 552 def add_callback(callback) value = @ids.next.to_s @callbacks[value] = callback return [@name, value] end