Sha256: 4a38742a82966cf3d815ae007dceed172302ad681d3ab99e474f57fd8869e294

Contents?: true

Size: 684 Bytes

Versions: 7

Compression:

Stored size: 684 Bytes

Contents

require 'ralyxa/version'
require 'ralyxa/configuration'
require 'ralyxa/register_intents'
require 'ralyxa/skill'

module Ralyxa
  class << self
    attr_accessor :configuration

    def configure
      yield configuration if block_given?
    end

    def method_missing(m, *args, &block)
      if configuration.respond_to?(m)
        configuration.send(m, *args, &block)
      else
        super
      end
    end

    def respond_to_missing?(m, include_private = false)
      configuration.respond_to?(m) || super
    end

    private

    def setup_configuration
      @configuration = Ralyxa::Configuration.new
    end
  end

  setup_configuration
end

Ralyxa::RegisterIntents.run

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
ralyxa-lambda-1.9.0 lib/ralyxa.rb
ralyxa-lambda-1.8.0 lib/ralyxa.rb
ralyxa-1.8.0 lib/ralyxa.rb
ralyxa-1.7.0 lib/ralyxa.rb
ralyxa-1.6.2 lib/ralyxa.rb
ralyxa-1.6.1 lib/ralyxa.rb
ralyxa-1.6.0 lib/ralyxa.rb