lib/dotremap/dsl/item.rb in dotremap-0.0.6 vs lib/dotremap/dsl/item.rb in dotremap-0.0.7
- old
+ new
@@ -1,37 +1,37 @@
-require "dotremap/dsl"
+require "dotremap/namespace"
require "dotremap/property"
require "dotremap/remap"
-require "dotremap/openurl"
+require "dotremap/invoke_history"
module Dotremap::DSL::Item
AVAILABLE_PROPERTIES = %i(
name
identifier
autogen
).freeze
def remap(target, options = {})
remap = Dotremap::Remap.new(target, options[:to])
- childs << remap
+ add_child(remap)
end
def show_message(message)
property = Dotremap::Property.new("autogen", "__ShowStatusMessage__ #{message}")
- childs << property
+ add_child(property)
end
def invoke(application)
- Dotremap::Openurl.register(application)
+ Dotremap::InvokeHistory.register(application)
"VK_OPEN_URL_APP_#{application.gsub(/ /, '_')}"
end
private
def method_missing(property, value = '', options = {})
if AVAILABLE_PROPERTIES.include?(property)
property = Dotremap::Property.new(property, value, options)
- childs << property
+ add_child(property)
else
super
end
end
end