Sha256: 2f41cd69039665a1267cd2ec6dd4238882dd4e6f5dfa531ee14747472d52d4e7

Contents?: true

Size: 419 Bytes

Versions: 5

Compression:

Stored size: 419 Bytes

Contents

module Carbon
  module Cli
    class Environment
      instance_methods.each do |m|
        undef_method(m) if m.to_s !~ /(?:^__|^nil\?$|^send$|^instance_eval$|^define_method$|^class$|^object_id$)/
      end

      def get_binding() binding end
      
      def method_missing(*args)
        return if [:extend, :respond_to?].include? args.first
        puts "Unknown command #{args.first}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
carbon-1.0.4 lib/carbon/cli/environment.rb
carbon-1.0.3 lib/carbon/cli/environment.rb
carbon-1.0.1 lib/carbon/cli/environment.rb
carbon-1.0.0 lib/carbon/cli/environment.rb
carbon-0.3.0 lib/carbon/cli/environment.rb