module NeuronCheckSyntax

Public Instance Methods

decl(*expecteds, &block)
Alias for: ndecl
declare(*expecteds, &block)
Alias for: ndecl
ncheck(*expecteds, &block)
Alias for: ndecl
ndecl(*expecteds, &block) click to toggle source

ndecl宣言 (このメソッドは初回実行時のみ呼び出されることに注意。1度ndeclを実行したら、次以降はNeuronCheckSystem::DeclarationMethodsの方が有効になるため、そちらが呼ばれる)

# File lib/neuroncheck/syntax.rb, line 13
def ndecl(*expecteds, &block)
  # モジュール/クラス内の場合の処理
  # extend NeuronCheckが実行されていない未初期化の場合、NeuronCheck用の初期化を自動実行
  unless @__neuron_check_extended then
    extend NeuronCheck
  end

  # メイン処理実行
  __neuroncheck_ndecl_main(expecteds, block, caller(1, 1))
end
Also aliased as: ndeclare, ncheck, ntypesig, nsig, decl, declare, sig
ndeclare(*expecteds, &block)
Alias for: ndecl
nsig(*expecteds, &block)
Alias for: ndecl
ntypesig(*expecteds, &block)
Alias for: ndecl
sig(*expecteds, &block)
Alias for: ndecl