Sha256: 65ea13ad8e54736be19b90d74fd6fb45435b07e4ea5b5d5d67777b76db1ad131

Contents?: true

Size: 511 Bytes

Versions: 5

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

module Ad
  module AgentArchitecture
    module Dsl
      # This class is responsible for defining the settings of a workflow
      class SettingsDsl < ChildDsl
        def method_missing(name, *args, &block)
          if args.length == 1 && block.nil?
            data[:settings][name] = args.first
          else
            super
          end
        end

        def respond_to_missing?(_name, _include_private = false)
          true
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ad-agent_architecture-0.0.22 lib/ad/agent_architecture/dsl/settings_dsl.rb
ad-agent_architecture-0.0.21 lib/ad/agent_architecture/dsl/settings_dsl.rb
ad-agent_architecture-0.0.20 lib/ad/agent_architecture/dsl/settings_dsl.rb
ad-agent_architecture-0.0.19 lib/ad/agent_architecture/dsl/settings_dsl.rb
ad-agent_architecture-0.0.18 lib/ad/agent_architecture/dsl/settings_dsl.rb