Module: KeyViewer
- Included in:
- Rediscover::Panel::ListView, Rediscover::Panel::SetView, Rediscover::Panel::SortedSetView, Rediscover::Panel::StringView
- Defined in:
- lib/rediscover/key_viewer.rb
Instance Method Summary collapse
Instance Method Details
#do_on_close ⇒ Object
14 15 16 |
# File 'lib/rediscover/key_viewer.rb', line 14 def do_on_close @on_close_block.call() if @on_close_block end |
#do_on_save ⇒ Object
6 7 8 |
# File 'lib/rediscover/key_viewer.rb', line 6 def do_on_save @on_save_block.call() if @on_save_block end |
#on_close(&block) ⇒ Object
10 11 12 |
# File 'lib/rediscover/key_viewer.rb', line 10 def on_close(&block) @on_close_block = block end |
#on_save(&block) ⇒ Object
2 3 4 |
# File 'lib/rediscover/key_viewer.rb', line 2 def on_save(&block) @on_save_block = block end |