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



39
40
41
# File 'lib/hangry/recipe_parser.rb', line 39

def method_missing(*args, &block)
  self
end

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


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

def blank?; true; end

#present?Boolean

Returns:

  • (Boolean)


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

def present?; false; end

#to_aObject



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

def to_a; []; end

#to_aryObject



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

def to_ary; []; end

#to_fObject



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

def to_f; 0.0; end

#to_iObject



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

def to_i; 0; end

#to_sObject



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

def to_s; ""; end

#to_strObject



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

def to_str; ""; end