Sha256: bf8443102a91119128827a8159b1e5945665dc36bb0dd30ae091676ba425fb5c

Contents?: true

Size: 337 Bytes

Versions: 9

Compression:

Stored size: 337 Bytes

Contents

module Commander
  module Patches
    module HelpFormatterBinding
      def get_binding(additional = {})
        bnd = @target.instance_eval { binding }.tap do |bind|
          decorate_binding(bind)
        end
        additional.each do |k, v|
          bnd.local_variable_set(k, v)
        end
        bnd
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
commander-openflighthpc-2.0.2 lib/commander/patches/help_formatter_binding.rb
commander-openflighthpc-2.0.1 lib/commander/patches/help_formatter_binding.rb
commander-openflighthpc-2.0.0 lib/commander/patches/help_formatter_binding.rb
commander-openflighthpc-1.2.0 lib/commander/patches/help_formatter_binding.rb
commander-openflighthpc-1.1.2 lib/commander/patches/help_formatter_binding.rb
commander-openflighthpc-1.1.1 lib/commander/patches/help_formatter_binding.rb
commander-openflighthpc-1.1.0 lib/commander/patches/help_formatter_binding.rb
commander-openflighthpc-1.0.0 lib/commander/patches/help_formatter_binding.rb
commander-openflighthpc-1.0.0.pre.alpha1 lib/commander/patches/help_formatter_binding.rb