Sha256: 74093a9b8b81951c117cf245cd6069ec00c4f694adfc35e8fa54076f4e0774ab

Contents?: true

Size: 237 Bytes

Versions: 8

Compression:

Stored size: 237 Bytes

Contents

require "karabiner/namespace"
require "karabiner/item"

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
karabiner-0.4.0 lib/karabiner/dsl/group.rb
karabiner-0.3.1 lib/karabiner/dsl/group.rb
karabiner-0.3.0 lib/karabiner/dsl/group.rb
karabiner-0.2.1 lib/karabiner/dsl/group.rb
karabiner-0.2.0 lib/karabiner/dsl/group.rb
karabiner-0.1.2 lib/karabiner/dsl/group.rb
karabiner-0.1.1 lib/karabiner/dsl/group.rb
karabiner-0.1.0 lib/karabiner/dsl/group.rb