Sha256: f0c878fdac89dcbda81fd44f59037b91c705d5b2a1a6b5362319a55d54afc44e

Contents?: true

Size: 224 Bytes

Versions: 9

Compression:

Stored size: 224 Bytes

Contents

module UIControlWrap
  # adds ability to trigger a defined callback
  # that was previously defined by #when
  def trigger(events)
    @callback ||= {}
    @callback[events].map(&:call) if @callback.has_key? events
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
formotion-1.8 spec/support/ui_control_wrap_extension.rb
formotion-1.7 spec/support/ui_control_wrap_extension.rb
formotion-1.6 spec/support/ui_control_wrap_extension.rb
formotion-1.5.1 spec/support/ui_control_wrap_extension.rb
formotion-1.5.0 spec/support/ui_control_wrap_extension.rb
formotion-1.4.0 spec/support/ui_control_wrap_extension.rb
formotion-1.3.1 spec/support/ui_control_wrap_extension.rb
formotion-1.3 spec/support/ui_control_wrap_extension.rb
formotion-1.2 spec/support/ui_control_wrap_extension.rb