Sha256: 17af6f051c4ea64c2b54d829a5df0acdb8ca2b11b43699d75f32a27e11e214a0
Contents?: true
Size: 487 Bytes
Versions: 3
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module Ad module AgentArchitecture module Dsl # This class is responsible for defining the attributes of a workflow class AttributeDsl < ChildDsl def attribute(name, type:, is_array: false) raise ArgumentError, 'Attribute name must be a string or symbol' unless name.is_a?(String) || name.is_a?(Symbol) attributes[name] = { name: name, type: type, is_array: is_array } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems