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



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

alias :_const_missing :const_missing

#const_missing(name) ⇒ Object

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



491
492
493
494
495
496
497
# File 'lib/when_exe/core/extension.rb', line 491

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