The base morpher class. Morphers are triggered by a special ‘key’ attribute in the xml stream and transform the owner element. Typically used along with the MorphFilter.
Methods
Attributes
| [RW] | attributes | The tag attributes. |
| [RW] | key | The key |
| [RW] | name | The name of the tag. |
| [RW] | value | The value of the key. |
Public Class methods
[ show source ]
# File lib/raw/compiler/filter/morph/standard.rb, line 26
26: def initialize(name, attributes)
27: @key = self.class.key
28: @name = name
29: @attributes = attributes
30: @value = @attributes[@key]
31: end
Public Instance methods
[ show source ]
# File lib/raw/compiler/filter/morph/standard.rb, line 42
42: def after_end(buffer)
43: end
[ show source ]
# File lib/raw/compiler/filter/morph/standard.rb, line 36
36: def after_start(buffer)
37: end
[ show source ]
# File lib/raw/compiler/filter/morph/standard.rb, line 39
39: def before_end(buffer)
40: end
[ show source ]
# File lib/raw/compiler/filter/morph/standard.rb, line 33
33: def before_start(buffer)
34: end