Sha256: 431bc733eb7ed1e6c78a1a04cf94c98dcd9661244b7c2338bcfb713156451aa0
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
# frozen_string_literal: true module Commander module Delegates %w( add_command command program run! global_option alias_command default_command always_trace! never_trace! ).each do |meth| eval <<-END, binding, __FILE__, __LINE__ + 1 def #{meth}(*args, &block) ::Commander::Runner.instance.#{meth}(*args, &block) end END end def defined_commands(...) ::Commander::Runner.instance.commands(...) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commander-5.0.0 | lib/commander/delegates.rb |