Class: RailsBestPractices::Core::Nil

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_sym, *arguments, &block) ⇒ Object

return self



10
11
12
# File 'lib/rails_best_practices/core/nil.rb', line 10

def method_missing(method_sym, *arguments, &block)
  self
end

Instance Method Details

#to_s(*arguments) ⇒ Object



5
6
7
# File 'lib/rails_best_practices/core/nil.rb', line 5

def to_s(*arguments)
  self
end