What is the difference between Procs and Blocks?
Submitted by: MuhammadThe difference between Procs and Blocks,
☛ Block is just the part of the syntax of a method while proc has the characteristics of a block
☛ Procs are objects, blocks are not
☛ At most one block can appear in an argument list
☛ Only block is not able to be stored into a variable while Proc can
Submitted by: Muhammad
☛ Block is just the part of the syntax of a method while proc has the characteristics of a block
☛ Procs are objects, blocks are not
☛ At most one block can appear in an argument list
☛ Only block is not able to be stored into a variable while Proc can
Submitted by: Muhammad
Read Online Ruby Developer Job Interview Questions And Answers
Top Ruby Developer Questions
☺ | Tell us what is class libraries in Ruby? |
☺ | Tell me can you call a private method outside a Ruby class using its object? |
☺ | Explain me what is the function of ORM in Ruby on Rails? |
☺ | Tell me the role of modules and mixins in Ruby? |
☺ | What is the difference extend and include? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |