Module: TE3270::ScreenPopulator
- Included in:
- TE3270
- Defined in:
- lib/te3270/screen_populator.rb
Instance Method Summary collapse
-
#populate_screen_with(hsh) ⇒ Object
This method will populate all matched screen text fields from the Hash passed as an argument.
Instance Method Details
#populate_screen_with(hsh) ⇒ Object
This method will populate all matched screen text fields from the Hash passed as an argument. The way it find an element is by matching the Hash key to the name you provided when declaring the text field on your screen.
26 27 28 29 30 |
# File 'lib/te3270/screen_populator.rb', line 26 def populate_screen_with(hsh) hsh.each do |key, value| self.send("#{key}=", value) if self.respond_to? "#{key}=".to_sym end end |