Class: HaveAPI::Fs::Components::ResourceId

Inherits:
Parameter show all
Defined in:
lib/haveapi/fs/components/resource_id.rb

Instance Attribute Summary

Attributes inherited from Parameter

#new_value

Attributes inherited from HaveAPI::Fs::Component

#atime, #context, #ctime, #mtime

Instance Method Summary collapse

Methods inherited from Parameter

#read, #set?, #unsaved?, #value, #writable?, #write_safe

Methods inherited from File

#file?, #raw_close, #raw_open, #raw_read, #raw_sync, #raw_truncate, #raw_write, #read, #size

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(resource_dir, *args) ⇒ ResourceId

Returns a new instance of ResourceId.



3
4
5
6
7
# File 'lib/haveapi/fs/components/resource_id.rb', line 3

def initialize(resource_dir, *args)
  super(*args)

  @resource_dir = resource_dir
end

Instance Method Details

#write(str) ⇒ Object



9
10
11
12
13
# File 'lib/haveapi/fs/components/resource_id.rb', line 9

def write(str)
  super(str)

  @resource_dir.replace_association(@name, value)
end