sanitize_sql_for_conditions

sanitize_sql_for_conditions(condition, table_name = self.table_name) Instance Protected methods Accepts an array, hash, or string of SQL conditions and sanitizes them into a valid SQL fragment for a WHERE clause. ["name='%s' and group_id='%s'", "foo'bar", 4] returns "name='foo''bar' and group_id='4'" { name: "foo'bar", group_id: 4 } returns "name='foo''bar' and group_id='4'" "name='foo''bar' and group_id='4'" returns "name='foo''bar' and group_id='4'" sanitize_sql

method_missing

method_missing(id, *args) Instance Public methods

cget

cget(option) Instance Public methods Returns the current value of the configuration option given by option. Example, display name of the file from which image was created: puts image.cget :file

[]

WIN32OLE_VARIANT[i,j,...] #=> element of OLE array. Instance Public methods Returns the element of WIN32OLE_VARIANT object(OLE array). This method is available only when the variant type of WIN32OLE_VARIANT object is VT_ARRAY. REMARK: The all indicies should be 0 or natural number and lower than or equal to max indicies. (This point is different with Ruby Array indicies.) obj = WIN32OLE_VARIANT.new([[1,2,3],[4,5,6]]) p obj[0,0] # => 1 p obj[1,0] # => 4 p obj[2,0] # =>

copy_string

copy_string(start_pos, end_pos) Instance Public methods Copies start_pos to end_pos from the current string

test_returns_success

test_returns_success() Instance Public methods

current_axis_configinfo

current_axis_configinfo(id, slot=nil) Instance Public methods

assert_no_migration

assert_no_migration(relative) Instance Public methods Asserts a given migration does not exist. You need to supply an absolute path or a path relative to the configured destination: assert_no_migration "db/migrate/create_products.rb"

absolute_path

absolute_path() Instance Public methods Returns the absolute path of this instruction sequence. nil if the iseq was evaluated from a string. For example, using ::compile_file: # /tmp/method.rb def hello puts "hello, world" end # in irb > iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb') > iseq.absolute_path #=> /tmp/method.rb

sanitize_limit

sanitize_limit(limit) Instance Public methods Sanitizes the given LIMIT parameter in order to prevent SQL injection. The limit may be anything that can evaluate to a string via to_s. It should look like an integer, or a comma-delimited list of integers, or an Arel SQL literal. Returns Integer and Arel::Nodes::SqlLiteral limits as is. Returns the sanitized limit parameter, either as an integer, or as a string which contains a comma-delimited list of integers.