File: constants_helpers.rb

package info (click to toggle)
ruby-virtus 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 660 kB
  • sloc: ruby: 4,378; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
module ConstantsHelpers

  extend self

  # helper to remove constants after test-runs.
  def undef_constant(mod, constant_name)
    mod.send(:remove_const, constant_name)
  end
end