class NoSE::SupportQuery
A query required to support an update
Attributes
entity[R]
index[R]
statement[R]
Public Class Methods
new(entity, params, text, group: nil, label: nil)
click to toggle source
Calls superclass method
NoSE::Query::new
# File lib/nose/statements/query.rb, line 138 def initialize(entity, params, text, group: nil, label: nil) super params, text, group: group, label: label @entity = entity end
Public Instance Methods
==(other)
click to toggle source
Support queries must also have their statement and index checked
# File lib/nose/statements/query.rb, line 145 def ==(other) other.is_a?(SupportQuery) && @statement == other.statement && @index == other.index && @comment == other.comment end
Also aliased as: eql?
hash()
click to toggle source
Calls superclass method
NoSE::Query#hash
# File lib/nose/statements/query.rb, line 151 def hash @hash ||= Zlib.crc32_combine super, @index.hash, @index.hash_str.length end
to_color()
click to toggle source
:nocov:
Calls superclass method
NoSE::Statement#to_color
# File lib/nose/statements/query.rb, line 156 def to_color super.to_color + ' for [magenta]' + @index.key + '[/]' end