Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/kbam/sugar.rb,
lib/kbam/extension.rb

Overview

FIXME: rewrite to simple setter and getter attr macro

Instance Method Summary collapse

Instance Method Details

#<(value) ⇒ Object


15
16
17
18
19
20
# File 'lib/kbam/sugar.rb', line 15

def <(value)
	@sql_prop = "<"
	@sql_value = value

	return self
end

#<=(value) ⇒ Object


22
23
24
25
26
27
# File 'lib/kbam/sugar.rb', line 22

def <=(value)
	@sql_prop = "<="
	@sql_value = value

	return self
end

#>(value) ⇒ Object


8
9
10
11
12
13
# File 'lib/kbam/sugar.rb', line 8

def >(value)
	@sql_prop = ">"
	@sql_value = value

	return self
end

#>=(value) ⇒ Object


29
30
31
32
33
34
# File 'lib/kbam/sugar.rb', line 29

def >=(value)
	@sql_prop = ">="
	@sql_value = value

	return self
end

#like(value) ⇒ Object


36
37
38
39
40
41
# File 'lib/kbam/sugar.rb', line 36

def like(value)
	@sql_prop = "LIKE"
	@sql_value = value

	return self
end

#set_sql_where_type(type) ⇒ Object


14
15
16
17
# File 'lib/kbam/extension.rb', line 14

def set_sql_where_type(type)
	@sql_where_type = type
	#puts "SET WHERE: #{@sql_where_type}"
end

#sql_propObject


43
44
45
# File 'lib/kbam/sugar.rb', line 43

def sql_prop
	@sql_prop
end

#sql_valueObject


47
48
49
# File 'lib/kbam/sugar.rb', line 47

def sql_value
	@sql_value		
end

#sql_where_typeObject


9
10
11
12
# File 'lib/kbam/extension.rb', line 9

def sql_where_type
	#puts "GET WHERE: #{@sql_where_type}"
	@sql_where_type
end