Sha256: d50c3d3f64b6bd11549c275a608074a5770f9dc1fd2f8b3571d34712b6d2f1dc

Contents?: true

Size: 308 Bytes

Versions: 6

Compression:

Stored size: 308 Bytes

Contents

require 'yapra/plugin'

module Yapra::Plugin::ContextAware
  attr_accessor :yapra, :pipeline, :plugin_config
  
  def config
    @config ||= nil
    unless @config
      @config = {}.update(yapra.env).update(pipeline.context)
      @config.update(plugin_config) if plugin_config
    end
    @config
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yapra-0.2.2 lib/yapra/plugin/context_aware.rb
yapra-0.2.0 lib/yapra/plugin/context_aware.rb
yapra-0.1.3 lib/yapra/plugin/context_aware.rb
yapra-0.1.0 lib/yapra/plugin/context_aware.rb
yapra-0.1.1 lib/yapra/plugin/context_aware.rb
yapra-0.1.2 lib/yapra/plugin/context_aware.rb