Class: HaveAPI::Fs::Components::ActionStatus
- Inherits:
-
File
- Object
- HaveAPI::Fs::Component
- File
- HaveAPI::Fs::Components::ActionStatus
- Defined in:
- lib/haveapi/fs/components/action_status.rb
Instance Attribute Summary
Attributes inherited from HaveAPI::Fs::Component
#atime, #context, #ctime, #mtime
Instance Method Summary collapse
-
#initialize(action_dir, *args) ⇒ ActionStatus
constructor
A new instance of ActionStatus.
- #read ⇒ Object
- #set(v) ⇒ 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(action_dir, *args) ⇒ ActionStatus
Returns a new instance of ActionStatus.
3 4 5 6 7 |
# File 'lib/haveapi/fs/components/action_status.rb', line 3 def initialize(action_dir, *args) super(*args) @action_dir = action_dir @v = nil end |
Instance Method Details
#read ⇒ Object
9 10 11 |
# File 'lib/haveapi/fs/components/action_status.rb', line 9 def read value.to_s + "\n" end |
#set(v) ⇒ Object
13 14 15 16 |
# File 'lib/haveapi/fs/components/action_status.rb', line 13 def set(v) changed @v = v end |