Module: Nitron::UI::OutletSupport
- Included in:
- ViewController
- Defined in:
- lib/nitron/ui/outlet_support.rb
Instance Method Summary collapse
Instance Method Details
#setValue(value, forUndefinedKey: key) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/nitron/ui/outlet_support.rb', line 4 def setValue(value, forUndefinedKey:key) unless self.class.respond_to?(key) self.class.send(:attr_reader, key) end instance_variable_set("@#{key}", value) end |
#viewDidLoad ⇒ Object
12 13 14 15 16 17 |
# File 'lib/nitron/ui/outlet_support.rb', line 12 def viewDidLoad super outletBinder = OutletBinder.new outletBinder.bind(self, view) end |