Exception: Spectro::Exception::UndefinedMethodDefinition
- Inherits:
-
Exception
- Object
- Exception
- Spectro::Exception::UndefinedMethodDefinition
- Defined in:
- lib/spectro/exception/undefined_method_definition.rb
Instance Attribute Summary collapse
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
Instance Method Summary collapse
-
#initialize(file_path, method_name) ⇒ UndefinedMethodDefinition
constructor
A new instance of UndefinedMethodDefinition.
- #to_s ⇒ Object
Constructor Details
#initialize(file_path, method_name) ⇒ UndefinedMethodDefinition
Returns a new instance of UndefinedMethodDefinition.
9 10 11 12 |
# File 'lib/spectro/exception/undefined_method_definition.rb', line 9 def initialize file_path, method_name self.file_path = file_path self.method_name = method_name end |
Instance Attribute Details
#file_path ⇒ Object
Returns the value of attribute file_path.
7 8 9 |
# File 'lib/spectro/exception/undefined_method_definition.rb', line 7 def file_path @file_path end |
#method_name ⇒ Object
Returns the value of attribute method_name.
7 8 9 |
# File 'lib/spectro/exception/undefined_method_definition.rb', line 7 def method_name @method_name end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/spectro/exception/undefined_method_definition.rb', line 14 def to_s "[##{self.method_name}] has not been defiend for \"#{self.file_path}\". Verify the specs at \"#{self.file_path}\" and check the `spectro compile` output for more detailed information." end |