Class: WindowRails::Holder
- Inherits:
-
Object
- Object
- WindowRails::Holder
- Includes:
- WindowRailsGenerators
- Defined in:
- lib/window_rails/window_rails_windows.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
Instance Method Summary collapse
- #<<(string) ⇒ Object
-
#initialize(args = {}) ⇒ Holder
constructor
A new instance of Holder.
- #window_flush ⇒ Object
Methods included from WindowRailsGenerators
#auto_resize, #center_window, #check_for_window, #close_alert_window, #close_all_windows, #close_info_window, #close_window, #create_window, #focus_window, #maximize_window, #minimize_window, #observe_dynamically_loaded_field, #open_alert_window, #open_confirm_window, #open_info_window, #open_window, #refresh_window, #resize_to_fit, #show_window, #store_content, #update_info_window, #update_window, #update_window_contents, #window, #window_setup
Constructor Details
#initialize(args = {}) ⇒ Holder
Returns a new instance of Holder.
7 8 9 10 |
# File 'lib/window_rails/window_rails_windows.rb', line 7 def initialize(args={}) @context = args[:context] @buffer = '' end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
5 6 7 |
# File 'lib/window_rails/window_rails_windows.rb', line 5 def context @context end |
Instance Method Details
#<<(string) ⇒ Object
12 13 14 |
# File 'lib/window_rails/window_rails_windows.rb', line 12 def << (string) @buffer << string.to_s end |
#window_flush ⇒ Object
16 17 18 19 20 |
# File 'lib/window_rails/window_rails_windows.rb', line 16 def window_flush buf = @buffer.dup @buffer = '' buf end |