Module: Orthoses::Attribute::Hook
- Defined in:
- lib/orthoses/attribute.rb
Instance Method Summary collapse
- #attr(*names) ⇒ Object
- #attr_accessor(*names) ⇒ Object
- #attr_reader(*names) ⇒ Object
- #attr_writer(*names) ⇒ Object
Instance Method Details
#attr(*names) ⇒ Object
6 7 8 9 |
# File 'lib/orthoses/attribute.rb', line 6 def attr(*names) (CALL_GRAPH[self]||=[]) << [:attr, names] super end |
#attr_accessor(*names) ⇒ Object
11 12 13 14 |
# File 'lib/orthoses/attribute.rb', line 11 def attr_accessor(*names) (CALL_GRAPH[self]||=[]) << [:attr_accessor, names] super end |
#attr_reader(*names) ⇒ Object
16 17 18 19 |
# File 'lib/orthoses/attribute.rb', line 16 def attr_reader(*names) (CALL_GRAPH[self]||=[]) << [:attr_reader, names] super end |
#attr_writer(*names) ⇒ Object
21 22 23 24 |
# File 'lib/orthoses/attribute.rb', line 21 def attr_writer(*names) (CALL_GRAPH[self]||=[]) << [:attr_writer, names] super end |