module Dotremap::DSL::Item

Constants

AVAILABLE_PROPERTIES

Public Instance Methods

invoke(application) click to toggle source
# File lib/dotremap/dsl/item.rb, line 23
def invoke(application)
  Dotremap::InvokeHistory.register(application)
  "VK_OPEN_URL_APP_#{application.gsub(/ /, '_')}"
end
remap(target, options = {}) click to toggle source
# File lib/dotremap/dsl/item.rb, line 13
def remap(target, options = {})
  remap = Dotremap::Remap.new(target, options[:to])
  add_child(remap)
end
show_message(message) click to toggle source
# File lib/dotremap/dsl/item.rb, line 18
def show_message(message)
  property = Dotremap::Property.new("autogen", "__ShowStatusMessage__ #{message}")
  add_child(property)
end

Private Instance Methods

method_missing(property, value = '', options = {}) click to toggle source
Calls superclass method
# File lib/dotremap/dsl/item.rb, line 30
def method_missing(property, value = '', options = {})
  if AVAILABLE_PROPERTIES.include?(property)
    property = Dotremap::Property.new(property, value, options)
    add_child(property)
  else
    super
  end
end