Class: MrubyBridgePlugin

Inherits:
MultiPlugin show all
Defined in:
lib/tecsgen/plugin/MrubyBridgePlugin.rb

Overview

MrubyBridgePlugin クラス

Class Method Summary collapse

Methods inherited from Node

#cdl_error, #cdl_error2, #cdl_error3, #cdl_info, #cdl_info2, #cdl_warning, #cdl_warning2, #get_locale, #initialize, #locale_str, #set_locale

Constructor Details

This class inherits a constructor from Node

Class Method Details

.get_plugin(superClass) ⇒ Object



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/tecsgen/plugin/MrubyBridgePlugin.rb', line 40

def self.get_plugin(superClass)
  # case when (つまりは ===) では、期待したように一致しない模様
  if superClass == SignaturePlugin
    dbgPrint "MrubyBridgePlugin: SignaturePlugin"
    require_tecsgen_lib "tecslib/plugin/MrubyBridgeSignaturePlugin.rb"
    return MrubyBridgeSignaturePlugin
  elsif superClass == CelltypePlugin
    dbgPrint "MrubyBridgePlugin: CelltypePlugin"
    require_tecsgen_lib "tecslib/plugin/MrubyBridgeCelltypePlugin.rb"
    return MrubyBridgeCelltypePlugin
  elsif superClass == CompositePlugin
    dbgPrint "MrubyBridgePlugin: CompositePlugin"
    require_tecsgen_lib "tecslib/plugin/MrubyBridgeCompositePlugin.rb"
    return MrubyBridgeCompositePlugin
  elsif superClass == CellPlugin
    dbgPrint "MrubyBridgePlugin: CellPlugin"
    require_tecsgen_lib "tecslib/plugin/MrubyBridgeCellPlugin.rb"
    return MrubyBridgeCellPlugin
  # elsif superClass == ThroughPlugin
  #  return ThroughPlugin
  # elsif superClass == DomainPlugin
  #  return DomainPlugin
  else
    dbgPrint "MrubyBridgePlugin: unsupported"
    return nil
  end
end