Sha256: 2da58938510230e15c6cd800429d0cd340a44ca0af1db23b01f01afcd34d1f2e

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

# Volay module
module Volay
  # Widgets components
  module Widget
    # Events class
    class Events
      attr_reader :app

      ##
      # Initialize signals events
      #
      def initialize(app)
        @app = app

        methods.each do |name|
          next unless name =~ /^on_/
          @app.signals_list[name.to_s] = method(name)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
volay-1.1.0 lib/volay/widget/events.rb
volay-1.0.1 lib/volay/widget/events.rb