Class: WindowRails::Holder

Inherits:
Object
  • Object
show all
Includes:
WindowRailsGenerators
Defined in:
lib/window_rails/window_rails_windows.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject

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_flushObject



16
17
18
19
20
# File 'lib/window_rails/window_rails_windows.rb', line 16

def window_flush
  buf = @buffer.dup
  @buffer = ''
  buf
end