Class: UIImageView
Instance Method Summary collapse
Instance Method Details
#remote_image=(args) ⇒ Object
3 4 5 6 7 |
# File 'lib/project/ext/ui_image_view.rb', line 3 def remote_image=(args) url = args.respond_to?(:fetch) ? args.fetch(:url) : args callback = args.respond_to?(:fetch) ? args.fetch(:on_load, -> {}) : -> {} load_remote_image(url, callback) end |