Exception: Yoga::Error Private
- Inherits:
-
StandardError
- Object
- StandardError
- Yoga::Error
- Defined in:
- lib/yoga/errors.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
An error originating from the Yoga class. All behavior here is private to the Yoga module.
Direct Known Subclasses
Instance Method Summary collapse
-
#generate_message ⇒ ::String
private
private
Generates a message for the exception.
-
#initialize(data) ⇒ Error
constructor
private
Initialize the error.
Constructor Details
#initialize(data) ⇒ Error
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize the error.
14 15 16 17 |
# File 'lib/yoga/errors.rb', line 14 def initialize(data) data.each { |k, v| instance_variable_set(:"@#{k}", v) } super() end |
Instance Method Details
#generate_message ⇒ ::String (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Generates a message for the exception.
24 25 26 |
# File 'lib/yoga/errors.rb', line 24 def end |