Module: RedefOpertor

Defined in:
lib/tdl/Logic/redefine_operator.rb

Class Method Summary collapse

Class Method Details

.return_normal_operatorsObject



24
25
26
# File 'lib/tdl/Logic/redefine_operator.rb', line 24

def self.return_normal_operators
    ClassHDL::AssignDefOpertor.use_old_cond_opertors
end

.with_new_cond_operators(&block) ⇒ Object



11
12
13
# File 'lib/tdl/Logic/redefine_operator.rb', line 11

def self.with_new_cond_operators(&block)
    ClassHDL::AssignDefOpertor.with_rollback_opertors(:new,&block)
end

.with_new_yield_operators(back_to_new_cond: true, &block) ⇒ Object



7
8
9
# File 'lib/tdl/Logic/redefine_operator.rb', line 7

def self.with_new_yield_operators(back_to_new_cond:true,&block)
    ClassHDL::AssignDefOpertor.with_rollback_opertors(:new,&block)
end

.with_normal_operators(&block) ⇒ Object



20
21
22
# File 'lib/tdl/Logic/redefine_operator.rb', line 20

def self.with_normal_operators(&block)
    ClassHDL::AssignDefOpertor.with_rollback_opertors(:old,&block)
end

.with_old_operators(&block) ⇒ Object



15
16
17
# File 'lib/tdl/Logic/redefine_operator.rb', line 15

def self.with_old_operators(&block)
    ClassHDL::AssignDefOpertor.with_rollback_opertors(:old,&block)
end