Module: RubyExtension::NilClass::InstanceMethods

Defined in:
lib/ruby_extension/nil_class.rb

Overview

module ClassMethods # :nodoc: end

Instance Method Summary collapse

Instance Method Details

#include?(*args) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/ruby_extension/nil_class.rb', line 20

def include?(*args)
	false
end

#split(*args) ⇒ Object

Return an empty array when attempting to split nil



16
17
18
# File 'lib/ruby_extension/nil_class.rb', line 16

def split(*args)
	[]
end