module Enel
Constants
- VERSION
Public Instance Methods
define_call_command(proc)
click to toggle source
# File lib/enel.rb, line 4 def define_call_command(proc) no_commands do define_method(:call_command) { |*args|proc.call(*args) } end private :call_command define_each_commands end
Private Instance Methods
define_each_command(command)
click to toggle source
# File lib/enel.rb, line 18 def define_each_command(command) no_commands do define_method(command) { |*args|call_command(command, *args) } end end
define_each_commands()
click to toggle source
# File lib/enel.rb, line 14 def define_each_commands instance_methods(false).each { |command|define_each_command(command) } end