diff options
author | steve donovan <steve.j.donovan@gmail.com> | 2013-09-14 15:24:11 +0400 |
---|---|---|
committer | steve donovan <steve.j.donovan@gmail.com> | 2013-09-14 15:24:11 +0400 |
commit | 5849f5d122263bc8647204759f02bc8678ef4f73 (patch) | |
tree | 3ed12509ef6564a91764d15edfabbb9a862d8e8b /lua/pl/Map.lua | |
parent | a62d30df7172fde8a3a87e7d9f3fe52a989f3806 (diff) |
update CHANGES and use classmod for classes1.3.0
Diffstat (limited to 'lua/pl/Map.lua')
-rw-r--r-- | lua/pl/Map.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/pl/Map.lua b/lua/pl/Map.lua index 80f7d70..823e24f 100644 --- a/lua/pl/Map.lua +++ b/lua/pl/Map.lua @@ -7,7 +7,7 @@ -- true -- -- Dependencies: `pl.utils`, `pl.class`, `pl.tablex`, `pl.pretty` --- @module pl.Map +-- @classmod pl.Map local tablex = require 'pl.tablex' local utils = require 'pl.utils' @@ -100,11 +100,16 @@ end -- @function Map:update Map.update = tablex.update +--- equality between maps. +-- @within metamethods +-- @param m another map. function Map:__eq (m) -- note we explicitly ask deepcompare _not_ to use __eq! return deepcompare(self,m,true) end +--- string representation of a map. +-- @within metamethods function Map:__tostring () return pretty_write(self,'') end |