# File lib/consular/dsl.rb, line 202 def to_hash @_file ||= {} combined = @_file.inject({}) do |base, item| item = {item.keys.first => {:commands => item.values.first, :options => {}}} base.merge!(item) base end # merge the array of hashes. { :setup => nil, :windows => { 'default' => { :tabs => combined } } } end