[Snipet] Ruby Hash dot syntax

dsiver144

Peaceful Days Dev
Veteran
Joined
Sep 19, 2013
Messages
263
Reaction score
826
First Language
Vietnamese
Primarily Uses
RMVXA
RUBY HASH DOT NOTATION
While coding in Js, I just realized that it would be awesome if Ruby hash can use dot syntax like Js object. So I googled for the answer. And I found a way to do it with simple line of codes. It would be useful for some coders, I guess.
You can grab it here: Pastebin
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
This kinda makes the script harder to read since we don't know if the object is hash or not, but I like the idea
 

dsiver144

Peaceful Days Dev
Veteran
Joined
Sep 19, 2013
Messages
263
Reaction score
826
First Language
Vietnamese
Primarily Uses
RMVXA
Yea, we may use old way in a big script. :D
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top