Method: Ektoplayer::Bindings#bind_view

Defined in:
lib/ektoplayer/bindings.rb

#bind_view(section, view, view_operations, operations) ⇒ Object



226
227
228
229
230
231
232
233
# File 'lib/ektoplayer/bindings.rb', line 226

def bind_view(section, view, view_operations, operations)
   @bindings[section.to_sym].each do |command, keys|
      keys.each do |key|
         meth = view_operations.method(command) rescue operations.method(command)
         view.keys.on(key, &meth)
      end
   end
end