Exception: Truck::AutoloadError
- Inherits:
-
NameError
- Object
- NameError
- Truck::AutoloadError
- Defined in:
- lib/truck/context.rb
Instance Attribute Summary collapse
-
#const ⇒ Object
readonly
Returns the value of attribute const.
Instance Method Summary collapse
-
#initialize(const:, rb_file:) ⇒ AutoloadError
constructor
A new instance of AutoloadError.
- #message ⇒ Object
Constructor Details
#initialize(const:, rb_file:) ⇒ AutoloadError
Returns a new instance of AutoloadError.
85 86 87 88 |
# File 'lib/truck/context.rb', line 85 def initialize(const:, rb_file:) @const = const @rb_file = rb_file end |
Instance Attribute Details
#const ⇒ Object (readonly)
Returns the value of attribute const.
83 84 85 |
# File 'lib/truck/context.rb', line 83 def const @const end |
Instance Method Details
#message ⇒ Object
90 91 92 |
# File 'lib/truck/context.rb', line 90 def "Expected #{rb_file} to define #{const}" end |