Class: SequencescapeExcel::NullValidation

Inherits:
Object
  • Object
show all
Defined in:
app/sequencescape_excel/sequencescape_excel/null_validation.rb

Overview

NullValidation

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object


29
30
31
# File 'app/sequencescape_excel/sequencescape_excel/null_validation.rb', line 29

def ==(other)
  other.is_a?(self.class)
end

#empty?Boolean

A null validation is always empty.

Returns:

  • (Boolean)

19
20
21
# File 'app/sequencescape_excel/sequencescape_excel/null_validation.rb', line 19

def empty?
  true
end

#optionsObject

Always returns an empty hash.


25
26
27
# File 'app/sequencescape_excel/sequencescape_excel/null_validation.rb', line 25

def options
  {}
end

#range_nameObject

Always returns :null range


9
10
11
# File 'app/sequencescape_excel/sequencescape_excel/null_validation.rb', line 9

def range_name
  :null_range
end

#update(attributes = {}) ⇒ Object

Does nothing


15
# File 'app/sequencescape_excel/sequencescape_excel/null_validation.rb', line 15

def update(attributes = {}); end