Module: CaTissue::Annotation::RecordEntryProxy

Includes:
Proxy
Defined in:
lib/catissue/annotation/record_entry_proxy.rb

Overview

caTissue 1.2 Resource annotation hook proxy mix-in.

Instance Method Summary collapse

Methods included from Proxy

#ensure_hook_exists

Instance Method Details

#hookAnnotatable

Returns the annotated domain object.

Returns:



10
11
12
# File 'lib/catissue/annotation/record_entry_proxy.rb', line 10

def hook
  send(self.class.owner_property.reader)
end

#hook=(obj) ⇒ Object

Parameters:



15
16
17
# File 'lib/catissue/annotation/record_entry_proxy.rb', line 15

def hook=(obj)
  send(self.class.owner_property.writer, obj)
end