diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-06 23:25:08 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-06 23:25:08 +0100 |
commit | b70079fbfa73dff4a3d94de1aa3d8b804fc9520b (patch) | |
tree | ca0fbdf2083f670c673ea2c42eea700fb14716d3 /src/Text/Pandoc/UUID.hs | |
parent | a2e327f0db6be6999d575a3562007202b72153cf (diff) | |
download | pandoc-b70079fbfa73dff4a3d94de1aa3d8b804fc9520b.tar.gz |
data/pandoc.lua: split type and behavior tables
Clearly distinguish between a type and the behavioral properties of an instance
of that type. The behavior of a type (and all its subtypes) can now be amended
by adding methods to that types `behavior` object, without exposing the type
objects internals.
E.g.:
pandoc.Inline.behavior.frob = function () print'42' end
local str = pandoc.Str'hello'
str.frob() -- outputs '42'
Diffstat (limited to 'src/Text/Pandoc/UUID.hs')
0 files changed, 0 insertions, 0 deletions