Class: Zashoku::Conf::ConfigView
- Defined in:
- lib/core/modules/conf/lib/conf/config_view.rb
Instance Attribute Summary
Attributes inherited from View
#attributes, #format, #items_formatted
Instance Method Summary collapse
Methods inherited from View
#adjust_view, #change_screen_size, #changed!, #cleanup, #color, #dirty_all_lines, #draw, #draw_line, #expand, #fix_cursor, #get_len, #initialize, #move_cursor, #next_match, #pause, #previous_match, #refresh, #refresh_formats, #resolve_selected, #search, #select, #selected_group, #selected_item, #unpause
Methods included from Util
alert, decode_object, deep_merge, encode_object, get_yaml, put_yaml
Constructor Details
This class inherits a constructor from Zashoku::View
Instance Method Details
#get_format ⇒ Object
16 17 18 |
# File 'lib/core/modules/conf/lib/conf/config_view.rb', line 16 def get_format Zashoku.conf.get(%w[format conf]) end |
#refresh_attributes ⇒ Object
6 7 8 9 10 |
# File 'lib/core/modules/conf/lib/conf/config_view.rb', line 6 def refresh_attributes @attributes = { 't' => Zashoku.conf.get(%w[title conf]), } end |
#refresh_items ⇒ Object
12 13 14 |
# File 'lib/core/modules/conf/lib/conf/config_view.rb', line 12 def refresh_items @items = Zashoku.conf.items end |