Class: HaveAPI::Fs::Components::ActionErrors::ActionError
- Inherits:
-
File
- Object
- HaveAPI::Fs::Component
- File
- HaveAPI::Fs::Components::ActionErrors::ActionError
- Defined in:
- lib/haveapi/fs/components/action_errors.rb
Instance Attribute Summary
Attributes inherited from HaveAPI::Fs::Component
#atime, #context, #ctime, #mtime
Instance Method Summary collapse
-
#initialize(errors) ⇒ ActionError
constructor
A new instance of ActionError.
- #read ⇒ Object
Methods inherited from File
#file?, #raw_close, #raw_open, #raw_read, #raw_sync, #raw_truncate, #raw_write, #size, #write
Methods inherited from HaveAPI::Fs::Component
#abspath, #bound=, #bound?, children_reader, component, #contents, #directory?, #executable?, #file?, #find, inherited, #invalid?, #invalidate, #parent, #path, #readable?, #reset, #setup, #times, #title, #unsaved?, #use, #writable?
Constructor Details
#initialize(errors) ⇒ ActionError
Returns a new instance of ActionError.
6 7 8 |
# File 'lib/haveapi/fs/components/action_errors.rb', line 6 def initialize(errors) @errors = errors end |
Instance Method Details
#read ⇒ Object
10 11 12 |
# File 'lib/haveapi/fs/components/action_errors.rb', line 10 def read @errors.join("\n") + "\n" end |