lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]





On Thu, Aug 28, 2014 at 10:58 AM, Alfredo Palhares <masterkorp@masterkorp.net> wrote:
Hello lua-l,

I am trying to use lua penlight, it looks awesome. But I am having
problems using the :__Init(), so I did a wip commit to my
awesome-config-files repo[1] please checkout to the
enhancement/multiple-batteries branch, and run the battery.lua simple
script. It looks the the _Init() function of the power_supply its not
being called when I instance the object.
Any ideas?

[1] https://github.com/masterkorp/Awesome-config-files/

--
Regards,
Alfredo Palhares


I'm not going to go as far as cloning and running it, but I took a look at it. Have you tried:

`PowerSupply = Class.PowerSupply()`

instead of

`PowerSupply = Class()`

?

-Andrew