Class: Hangry::RecipeParser::NullObject

Inherits:
Object
  • Object
show all
Defined in:
lib/hangry/recipe_parser.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



46
47
48
# File 'lib/hangry/recipe_parser.rb', line 46

def method_missing(*args, &block)
  self
end

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


49
# File 'lib/hangry/recipe_parser.rb', line 49

def blank?; true; end

#present?Boolean

Returns:

  • (Boolean)


50
# File 'lib/hangry/recipe_parser.rb', line 50

def present?; false; end

#to_aObject



51
# File 'lib/hangry/recipe_parser.rb', line 51

def to_a; []; end

#to_aryObject



52
# File 'lib/hangry/recipe_parser.rb', line 52

def to_ary; []; end

#to_fObject



55
# File 'lib/hangry/recipe_parser.rb', line 55

def to_f; 0.0; end

#to_iObject



56
# File 'lib/hangry/recipe_parser.rb', line 56

def to_i; 0; end

#to_sObject



53
# File 'lib/hangry/recipe_parser.rb', line 53

def to_s; ""; end

#to_strObject



54
# File 'lib/hangry/recipe_parser.rb', line 54

def to_str; ""; end