Sha256: e7a6a5de31365a7bfd6901e04bd66323670779ba50cd145e732abd1874a3743d
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
module Eancom class Definition attr_reader :name, :type, :block def self.create(name:, type:, &block) definition = new(name: name, type: type, &block) Eancom::register_definition(definition) end def initialize(name:, type:, &block) @name = name @type = type @block = block end def run(document:, config:) @block.call(document, config) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eancom-0.1.0 | lib/eancom/definition.rb |