- Joined
- Jun 11, 2012
- Messages
- 117
- Reaction score
- 3
- Primarily Uses
def make_command_list end #-------------------------------------------------------------------------- # * Add Command # name : Command name # symbol : Corresponding symbol # enabled : Activation state flag # ext : Arbitrary extended data #-------------------------------------------------------------------------- def add_command(name, symbol, enabled = true, ext = nil) @list.push({:name=>name, :symbol=>symbol, :enabled=>enabled, :ext=>ext}) endWhy method make_command_list is empty? Preserve for something?
:name and :symbol? I went over that in ruby tutorial somewhere but can't remember. where is a constant?
what is ext = nil, what is with this whole line {:name=>name, :symbol=>symbol, :enabled=>enabled, :ext=>ext}
@list.push ? seem like append something in the list?
That is the reason I am not fond to this Ruby language because two many ways to deal with one thing. Which often make confusion for newbies.
:name and :symbol? I went over that in ruby tutorial somewhere but can't remember. where is a constant?
what is ext = nil, what is with this whole line {:name=>name, :symbol=>symbol, :enabled=>enabled, :ext=>ext}
@list.push ? seem like append something in the list?
That is the reason I am not fond to this Ruby language because two many ways to deal with one thing. Which often make confusion for newbies.

