Class: RPV::Wiring::JavaArrayWiring

Inherits:
Base
  • Object
show all
Defined in:
lib/rpv/wiring/java_array.rb

Instance Method Summary collapse

Instance Method Details

#update_view(model, view, presenter) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/rpv/wiring/java_array.rb', line 6

def update_view(model, view, presenter)
  unless @model.nil?
    send_nested(view, "#{@view}=", send_nested(model, @model).to_java)
  else
    send_nested(view, "#{@view}=", send_nested(presenter, @presenter).to_java)
  end
end