File: blank.rb

package info (click to toggle)
ruby-commander 5.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: ruby: 1,969; makefile: 9
file content (9 lines) | stat: -rw-r--r-- 190 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

module Blank
  def self.included(base)
    base.class_eval do
      instance_methods.each { |m| undef_method m unless m =~ /^__|object_id/ }
    end
  end
end