Class: TdlSimTest::SdlSimpleTestDefSuger
- Inherits:
-
Object
- Object
- TdlSimTest::SdlSimpleTestDefSuger
- Defined in:
- lib/tdl/exlib/sdlmodule_sim.bak.rb
Overview
用于定义语法糖
Instance Method Summary collapse
- #-(name) ⇒ Object
-
#initialize(value_default: nil) ⇒ SdlSimpleTestDefSuger
constructor
A new instance of SdlSimpleTestDefSuger.
Constructor Details
#initialize(value_default: nil) ⇒ SdlSimpleTestDefSuger
Returns a new instance of SdlSimpleTestDefSuger.
266 267 268 |
# File 'lib/tdl/exlib/sdlmodule_sim.bak.rb', line 266 def initialize(value_default: nil) @value_default = value_default end |
Instance Method Details
#-(name) ⇒ Object
270 271 272 273 274 275 276 277 |
# File 'lib/tdl/exlib/sdlmodule_sim.bak.rb', line 270 def -(name) rel = TdlSimTest::TdlSimpleTestUnit.new(name: name,value_default: @value_default, sim_target_hash: TdlBaseTestUnit.test_unit_hash) TdlBaseTestUnit.top_sim_list << rel TdlSimTest.define_singleton_method(name) do return rel end return rel end |