Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/when_exe/core/extension.rb

Overview

Extensions to Module class

Instance Method Summary collapse

Instance Method Details

#_const_missingObject



491
# File 'lib/when_exe/core/extension.rb', line 491

alias :_const_missing :const_missing

#const_missing(name) ⇒ Object

When 直下に定数として定義する時法・暦法(暗黙的追加)



496
497
498
499
500
501
502
# File 'lib/when_exe/core/extension.rb', line 496

def const_missing(name)
  if When.const_defined?(name)
    _const_missing(name)
  else
    When.const_missing(name)
  end
end