Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
vane112805y@Prakhar96 you got me to computer for 20 minutes to construct this pastebin xD
Feel free to take code if you like it.
Some advise:
Write some issues so people can know what they need to contribute.
I don't know what object construct is in Ruby but you can override almost everything in Python so it's nice to ex add + dictionaries etc. -
@vane No, I don't really need the code. Did you check the project link? 😅😅
The basic is completed. The idea is to make it as extensive as the OpenStruct. The link to the OpenStruct is mentioned in the project link.
Also, merging dictionary is already supported in the project.
Thanks for the advice 😄 -
vane112805y@Prakhar96 yeah but in your library you can't write
a = FlexibleObject({})
a.b.c.d.e.f.g.h.i.j.k = "k"
and with 3 more lines you can write it with my code ;) -
vane112805y@Prakhar96 sorry for stealing your name.
I made some changes ;)
https://pastebin.com/4RzRsW3x
I go back to watching hbo go now.
Need to rest a bit.
Have fun !
Ruby's OpenStruct for Python
Ruby's OpenStruct for Python