Sha256: cc84e2353e70d55133c545be391d55500191f804b042512008b51b3fb6f0918b
Contents?: true
Size: 428 Bytes
Versions: 3
Compression:
Stored size: 428 Bytes
Contents
# frozen_string_literal: true module Ragent class Configurator include Ragent::Logging def initialize(ragent) @ragent = ragent end def self.load(ragent, filename) config = new(ragent) config._load(filename) end def _load(filename) instance_eval File.read(filename) end private def plugin(*args, &block) @ragent.add_plugin(*args, &block) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ragent-0.0.6 | lib/ragent/configurator.rb |
ragent-0.0.5 | lib/ragent/configurator.rb |
ragent-0.0.4 | lib/ragent/configurator.rb |