Sha256: fb2005ed80e898811d9ca3293732576df479c39ff116668fa9090f363d7e4387
Contents?: true
Size: 357 Bytes
Versions: 18
Compression:
Stored size: 357 Bytes
Contents
require_relative 'enum_attribute' module Immutabler module DSL class EnumAttributesBuilder def initialize(attributes, prefix, &block) @attributes = attributes @prefix = prefix instance_eval(&block) end def attr(name) @attributes << EnumAttribute.new("#{@prefix}#{name}") end end end end
Version data entries
18 entries across 18 versions & 1 rubygems