Class: NilClass

Inherits:
Object
  • Object
show all
Defined in:
lib/wwmd/class_extensions/extensions_nilclass.rb

Overview

I really hate this

Instance Method Summary collapse

Instance Method Details

#clopObject



6
# File 'lib/wwmd/class_extensions/extensions_nilclass.rb', line 6

def clop; return nil; end

#empty?Boolean

:nodoc:

Returns:

  • (Boolean)


3
# File 'lib/wwmd/class_extensions/extensions_nilclass.rb', line 3

def empty?; return true; end

#escape(*args) ⇒ Object



10
# File 'lib/wwmd/class_extensions/extensions_nilclass.rb', line 10

def escape(*args); return nil; end

#get_attribute(*args) ⇒ Object



8
# File 'lib/wwmd/class_extensions/extensions_nilclass.rb', line 8

def get_attribute(*args); return nil; end

#grep(*args) ⇒ Object



9
# File 'lib/wwmd/class_extensions/extensions_nilclass.rb', line 9

def grep(*args); return []; end

#inner_htmlObject



7
# File 'lib/wwmd/class_extensions/extensions_nilclass.rb', line 7

def inner_html; return nil; end

#sizeObject



4
# File 'lib/wwmd/class_extensions/extensions_nilclass.rb', line 4

def size;   return 0;    end

#to_formObject



5
# File 'lib/wwmd/class_extensions/extensions_nilclass.rb', line 5

def to_form; return FormArray.new([]); end