Class: NilClass

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/nil.rb

Instance Method Summary collapse

Instance Method Details

#[](param) ⇒ Object



3
4
5
# File 'lib/ext/nil.rb', line 3

def [] param
  nil
end

#childrenObject



19
20
21
# File 'lib/ext/nil.rb', line 19

def children
  []
end

#css(selector) ⇒ Object



15
16
17
# File 'lib/ext/nil.rb', line 15

def css selector
  nil
end

#eachObject



23
24
# File 'lib/ext/nil.rb', line 23

def each
end

#firstObject



11
12
13
# File 'lib/ext/nil.rb', line 11

def first
  nil
end

#nextObject



26
27
28
# File 'lib/ext/nil.rb', line 26

def next
  nil
end

#textObject



7
8
9
# File 'lib/ext/nil.rb', line 7

def text
  ""
end