Class: RVM::Classes::Error
Constant Summary collapse
- @@type =
:error
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, text = "This is an error!") ⇒ Error
constructor
A new instance of Error.
- #is_true? ⇒ Boolean
- #to_s ⇒ Object
Methods inherited from Class
#data_type, #functions, #method_missing, #variables
Methods included from Plugin
#helper, #included, #plugin_host, #plugin_id, #register_for
Constructor Details
#initialize(value, text = "This is an error!") ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 |
# File 'lib/rvm/classes/error.rb', line 7 def initialize value, text = "This is an error!" super() @value = value.to_i @text = text end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RVM::Classes::Class
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/rvm/classes/error.rb', line 5 def value @value end |