module Dieses::Support::Const

Constants

EMPTY_ARRAY

An empty array

EMPTY_HASH

An empty hash

EMPTY_OPTS

An empty list of options

EMPTY_SET

An empty set

EMPTY_STRING

An empty string

IDENTITY

Identity function

Undefined

Public Class Methods

included(base) click to toggle source
Calls superclass method
# File lib/dieses/support/const.rb, line 67
def self.included(base)
  super

  constants.each do |const_name|
    base.const_set(const_name, const_get(const_name))
  end
end