Class: CafeCar::NilClassPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/cafe_car/nil_class_presenter.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject



11
# File 'app/presenters/cafe_car/nil_class_presenter.rb', line 11

def method_missing(...) = self

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


5
# File 'app/presenters/cafe_car/nil_class_presenter.rb', line 5

def blank?   = true

#nil?Boolean

Returns:

  • (Boolean)


3
# File 'app/presenters/cafe_car/nil_class_presenter.rb', line 3

def nil?     = true

#present?Boolean

Returns:

  • (Boolean)


4
# File 'app/presenters/cafe_car/nil_class_presenter.rb', line 4

def present? = false

#thenObject



7
# File 'app/presenters/cafe_car/nil_class_presenter.rb', line 7

def then   = self

#to_aryObject



9
# File 'app/presenters/cafe_car/nil_class_presenter.rb', line 9

def to_ary = []

#to_htmlObject



10
# File 'app/presenters/cafe_car/nil_class_presenter.rb', line 10

def to_html = nil

#to_strObject



8
# File 'app/presenters/cafe_car/nil_class_presenter.rb', line 8

def to_str = ""