class DTK::Client::CLI::Processor

Delegation module for wrapping third party library used to do parsing

Public Class Methods

default() click to toggle source
# File lib/cli/processor.rb, line 38
def self.default
  new(Plugin.default_class)
end
new(plugin_class) click to toggle source
# File lib/cli/processor.rb, line 42
def initialize(plugin_class)
  @plugin = plugin_class.new
end

Public Instance Methods

method_missing(method, *args, &body) click to toggle source
Calls superclass method
# File lib/cli/processor.rb, line 47
def method_missing(method, *args, &body)
  Methods.all.include?(method) ? @plugin.send(method, *args, &body) : super
end
respond_to?(method) click to toggle source
Calls superclass method
# File lib/cli/processor.rb, line 51
def respond_to?(method)
  Methods.all.include?(method) or super
end