Sha256: b67ad40616c5250146a2fc106ef70ed501b05760b4a8ea978680abf5ba81d058

Contents?: true

Size: 337 Bytes

Versions: 10

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

module Pragmater
  # Provides context for runner.
  Context = Struct.new :action, :root_dir, :comments, :includes, keyword_init: true do
    def initialize *arguments
      super

      self[:root_dir] ||= "."
      self[:comments] = Array comments
      self[:includes] = Array includes
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pragmater-9.3.0 lib/pragmater/context.rb
pragmater-9.2.0 lib/pragmater/context.rb
pragmater-9.1.2 lib/pragmater/context.rb
pragmater-9.1.1 lib/pragmater/context.rb
pragmater-9.1.0 lib/pragmater/context.rb
pragmater-9.0.0 lib/pragmater/context.rb
pragmater-8.3.0 lib/pragmater/context.rb
pragmater-8.2.0 lib/pragmater/context.rb
pragmater-8.1.0 lib/pragmater/context.rb
pragmater-8.0.0 lib/pragmater/context.rb