diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-14 09:56:52 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-14 09:56:52 +0200 |
| commit | 818ed50e2a54b40ccf7a7771bebe0312dc01a8b5 (patch) | |
| tree | 16bfb301c1192a1d301d50388eb33a52ecdc7e69 /lib/dslkeywords/keyword.rb | |
| parent | 63607f415c45a8670cd2eb4d346e448dceb5422f (diff) | |
Add agent-backed file processing DSL
Diffstat (limited to 'lib/dslkeywords/keyword.rb')
| -rw-r--r-- | lib/dslkeywords/keyword.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/dslkeywords/keyword.rb b/lib/dslkeywords/keyword.rb index 1cbda9f..59ef5bf 100644 --- a/lib/dslkeywords/keyword.rb +++ b/lib/dslkeywords/keyword.rb @@ -1,4 +1,4 @@ -require 'set' +# frozen_string_literal: true require_relative '../options' require_relative '../log' @@ -6,11 +6,14 @@ require_relative '../log' module RCM # The base class of all DSL key words class Keyword + attr_accessor :dsl attr_reader :id include Options include Log + def self.id_for(name) = "#{to_s.sub('RCM::', '').downcase}('#{name}')" + def initialize(name) = @id = "#{self.class.to_s.sub('RCM::', '').downcase}('#{name}')" def to_s = @id |
