module Keyremac::Container
@group container
¶ ↑
Attributes
children[RW]
Public Instance Methods
add(rule)
click to toggle source
# File lib/keyremac/base.rb, line 48 def add(rule) children << rule end
method_missing(method_name, *args, &block)
click to toggle source
# File lib/keyremac/base.rb, line 52 def method_missing(method_name, *args, &block) method_name = method_name.to_s if method_name[-1] == '_' raw = Raw.new method_name.chomp('_') if block Keyremac::Focus.set_focus raw do raw.instance_eval(&block) end else raw.children = args[0] end @children << raw raw else raise NoMethodError, method_name end end