Sha256: a9690cc8f7509c695475e1974152b10f1cd22724f313e807186814d18051d14f

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

# 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.match?(/^on_/)
          @app.signals_list[name.to_s] = method(name)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
volay-1.2.0 lib/volay/widget/events.rb