#ruby - 18 May 2019
« Back 1 day Forward 1 day »
[01:28:40] phaul: :foo is just a Symbol constant that's passed to the method attr_reader. no special syntax is involved..
[01:30:17] phaul: no. :foo is a symbol and it's just any other object with no special behavioour, it's like 5, 'blah' , 3.14 etc
[01:31:33] phaul: attr_reader is a method that defines a getter method dynamically based on the symbol it got
[01:32:05] phaul: and the getter method will use the symbol name to access the instance variable too.
[01:33:36] bjpenn: variables are used to point to something. Symbols are a value, just like whatever is in a variable
[06:01:33] solars: hi, is there any chatbot framework for FB or telegram that actually supports something like Alexa/Snips has, where you define patterns for sentences and variable slots?