Class: HaveAPI::Fs::Components::ActionErrors::ActionError

Inherits:
File show all
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

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

#readObject



10
11
12
# File 'lib/haveapi/fs/components/action_errors.rb', line 10

def read
  @errors.join("\n") + "\n"
end