Exception: BlogBoi::MethodNotImplementedByParentApplication

Inherits:
StandardError
  • Object
show all
Defined in:
lib/blog_boi/error_classes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method) ⇒ MethodNotImplementedByParentApplication

Returns a new instance of MethodNotImplementedByParentApplication.



6
7
8
9
10
11
12
13
14
# File 'lib/blog_boi/error_classes.rb', line 6

def initialize(method)
 	@method_missing = method

 	super(
 		'Parent application must implement the method ' + 
 		method_missing + 
 		" - See BlogBoi README for requirement."
 	)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject (readonly)

Returns the value of attribute method_missing.



4
5
6
# File 'lib/blog_boi/error_classes.rb', line 4

def method_missing
  @method_missing
end

Instance Attribute Details

#method_missingObject (readonly)

Returns the value of attribute method_missing.



4
5
6
# File 'lib/blog_boi/error_classes.rb', line 4

def method_missing
  @method_missing
end