summaryrefslogtreecommitdiff
path: root/lib/dslkeywords/keyword.rb
blob: 1cbda9fa22abe49a338f0104ff7c0176cc1a062a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'set'

require_relative '../options'
require_relative '../log'

module RCM
  # The base class of all DSL key words
  class Keyword
    attr_reader :id

    include Options
    include Log

    def initialize(name) = @id = "#{self.class.to_s.sub('RCM::', '').downcase}('#{name}')"
    def to_s = @id

    class KeywordError < StandardError; end
  end
end