Class: DbString

Inherits:
Object
  • Object
show all
Defined in:
lib/dbexpect/db_string.rb

Overview

Copyright 2012 C3 Business Solutions

This file is part of dbexpect.

dbexpect is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

dbexpect is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with dbexpect.  If not, see <http://www.gnu.org/licenses/>.

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ DbString

Returns a new instance of DbString.



18
19
20
# File 'lib/dbexpect/db_string.rb', line 18

def initialize(str)
  @string = str
end

Instance Method Details

#db_strObject



22
23
24
# File 'lib/dbexpect/db_string.rb', line 22

def db_str
  "'#{@string}'"
end

#equality_testObject



26
27
28
# File 'lib/dbexpect/db_string.rb', line 26

def equality_test
  " = '#{@string}'"
end