Class: Saper::Items::Nothing

Inherits:
Saper::Item show all
Defined in:
lib/saper/items/nothing.rb

Instance Method Summary collapse

Methods inherited from Saper::Item

#==, [], exists?, inherited, new, #serialize, subclasses, try, #type, type

Constructor Details

#initialize(opts = {}) ⇒ Nothing


6
7
8
# File 'lib/saper/items/nothing.rb', line 6

def initialize(opts = {})
  @opts = opts
end

Instance Method Details

#filtered?Boolean


15
16
17
# File 'lib/saper/items/nothing.rb', line 15

def filtered?
  @opts[:filtered] == true
end

#nil?Boolean


11
12
13
# File 'lib/saper/items/nothing.rb', line 11

def nil?
  true
end

#to_nativeObject


20
21
22
# File 'lib/saper/items/nothing.rb', line 20

def to_native
  nil
end

#to_sObject


24
25
26
# File 'lib/saper/items/nothing.rb', line 24

def to_s
  'nil'
end