module PoiseLanguages::Command::Mixin::Provider::ClassMethods
Public Instance Methods
included(klass)
click to toggle source
@api private
Calls superclass method
# File lib/poise_languages/command/mixin.rb, line 228 def included(klass) super klass.extend(ClassMethods) end
language_command_mixin(name)
click to toggle source
Configure this module or class for a specific language.
@param name [Symbol] Language name. @return [void]
# File lib/poise_languages/command/mixin.rb, line 215 def language_command_mixin(name) define_method(:"#{name}_shell_out") do |*command_args| language_command_shell_out(name, *command_args) end private :"#{name}_shell_out" define_method(:"#{name}_shell_out!") do |*command_args| language_command_shell_out!(name, *command_args) end private :"#{name}_shell_out!" end