summaryrefslogtreecommitdiff
path: root/lib/dslkeywords/keyword.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dslkeywords/keyword.rb')
-rw-r--r--lib/dslkeywords/keyword.rb5
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