Module SymTblGsub::Assertions
In: lib/sym_tbl_gsub.rb

Methods

Attributes

symtbl  [RW] 

Public Instance methods

[Source]

# File lib/sym_tbl_gsub.rb, line 12
    def assert_symtbl ( my, ref )
      my_copy = Marshal.load(Marshal.dump(my))
      assert_equal ref, my.do_symtbl_gsub(symtbl)
      assert_equal my, my_copy,
                   'substitution not inplace has changed the object'
    end

[Source]

# File lib/sym_tbl_gsub.rb, line 23
    def assert_symtbl! ( my, ref )
      assert_equal ref, my.do_symtbl_gsub!(symtbl)
    end

[Source]

# File lib/sym_tbl_gsub.rb, line 19
    def assert_symtbl_nil ( my )
      assert_nil my.symtbl_gsub(symtbl)
    end

[Source]

# File lib/sym_tbl_gsub.rb, line 27
    def assert_symtbl_nil! ( my )
      assert_nil my.symtbl_gsub!(symtbl)
    end

[Validate]