module Yaks class Mapper class Form class Config include Attributes.new( name: nil, action: nil, title: nil, method: nil, media_type: nil, fields: [], dynamic_blocks: [], if: nil ) def dynamic(&blk) append_to(:dynamic_blocks, blk) end def condition(prc = nil, &blk) with(if: prc || blk) end end end end end