ruby - What does the right arrow do in this code: "Ramaze.start :port => 80" -


  ramaze. Start: Port = & gt; If my understanding is correct, then the row above is a method call in Ruby and you can also write it as:  
  Ramaze.start (: port => 80) < / Code> 

But in any case, when you put a => character between symbols, what does it mean? Port and number 80?

Is this a way to make a hash?

When the RMAC methodology achieves the method standards, then what is the type of argument?

Has it been obtained as a single logic key-value pair?

Or was it received as two arguments: port and 80?

This creates a Hashp where the symbol: is the port key and the value is 80.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -