Class: Mongoose::Column
Overview
Instance Attribute Summary
Attributes inherited from BaseColumn
#data_type, #name, #required, #tbl_class
Instance Method Summary
collapse
Methods inherited from BaseColumn
#close, create, #indexed?, #required?, valid_data_type?
Constructor Details
#initialize(tbl_class, name, col_def) ⇒ Column
Returns a new instance of Column.
48
49
50
51
|
# File 'lib/mongoose/column.rb', line 48
def initialize(tbl_class, name, col_def)
super
@idx = LinearSearch.new(self)
end
|
Instance Method Details
61
62
63
|
# File 'lib/mongoose/column.rb', line 61
def <(other)
@tbl_class.query << [@idx, :<, other]
end
|
#<=(other) ⇒ Object
65
66
67
|
# File 'lib/mongoose/column.rb', line 65
def <=(other)
@tbl_class.query << [@idx, :<=, other]
end
|
#==(other) ⇒ Object
69
70
71
|
# File 'lib/mongoose/column.rb', line 69
def ==(other)
@tbl_class.query << [@idx, :==, other]
end
|
53
54
55
|
# File 'lib/mongoose/column.rb', line 53
def >(other)
@tbl_class.query << [@idx, :>, other]
end
|
#>=(other) ⇒ Object
57
58
59
|
# File 'lib/mongoose/column.rb', line 57
def >=(other)
@tbl_class.query << [@idx, :>=, other]
end
|
#between(*other) ⇒ Object
73
74
75
|
# File 'lib/mongoose/column.rb', line 73
def between(*other)
@tbl_class.query << [@idx, :between, other]
end
|
#one_of(*other) ⇒ Object
77
78
79
|
# File 'lib/mongoose/column.rb', line 77
def one_of(*other)
@tbl_class.query << [@idx, :one_of, other]
end
|