Sha256: aaf75b919746b9ef7d137c3f566006f592472bc9e0187919c638c3d1fa875339

Contents?: true

Size: 233 Bytes

Versions: 2

Compression:

Stored size: 233 Bytes

Contents

require "dotremap/namespace"
require "dotremap/item"

module Dotremap::DSL::Group
  def item(name = nil, options = {}, &block)
    item = Dotremap::Item.new(name, options)
    item.instance_exec(&block)
    add_child(item)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dotremap-0.0.8 lib/dotremap/dsl/group.rb
dotremap-0.0.7 lib/dotremap/dsl/group.rb