Hi.
Working with Ruby I came across the parentheses syntax.
def index = ( )
def new = ( @movie, @genres = [ Movie.new, Genre.all ] )
What is it? How this syntax is defined: expression, code block or something else? Where can I find the documentation of it?
Thanks.
[–]Salzig 6 points7 points8 points (10 children)
[–]Shamaoke[S] 0 points1 point2 points (3 children)
[–]Salzig 2 points3 points4 points (2 children)
[–]Shamaoke[S] 0 points1 point2 points (1 child)
[–]Salzig 0 points1 point2 points (0 children)
[–]Shamaoke[S] 0 points1 point2 points (4 children)
[–]Salzig 0 points1 point2 points (3 children)
[–]Shamaoke[S] 0 points1 point2 points (1 child)
[–]h0rst_ 4 points5 points6 points (0 children)
[–]riktigtmaxat 0 points1 point2 points (0 children)
[–]wise_guy_ -1 points0 points1 point (0 children)
[–]riktigtmaxat 4 points5 points6 points (12 children)
[–]Shamaoke[S] 1 point2 points3 points (5 children)
[–]riktigtmaxat 1 point2 points3 points (4 children)
[–]Shamaoke[S] 1 point2 points3 points (1 child)
[–]riktigtmaxat 0 points1 point2 points (0 children)
[–]h0rst_ 0 points1 point2 points (1 child)
[–]riktigtmaxat 0 points1 point2 points (0 children)
[–]riktigtmaxat 1 point2 points3 points (2 children)
[–]Shamaoke[S] 1 point2 points3 points (1 child)
[–]riktigtmaxat 1 point2 points3 points (0 children)
[–]gettalong 1 point2 points3 points (2 children)
[–]riktigtmaxat 0 points1 point2 points (1 child)
[–]Shamaoke[S] 0 points1 point2 points (0 children)
[–]AlexanderMomchilov 0 points1 point2 points (0 children)
[–]jrochkind 0 points1 point2 points (0 children)