Activity Graph

Page 1 of 1


[14:15:34] breakfast1: has joined #ruby
[14:16:39] breakfast1: has left #ruby: ()


[20:33:03] breakfast1: has joined #ruby
[21:41:13] breakfast1: Quit: breakfast1


[21:10:24] breakfast1: so I'm reading Ruby under a microscope by Pat Shaughnessy
[21:10:40] breakfast1: and I'm experimenting with Ripper
[21:10:44] breakfast1: as of ruby 2.5.0
[21:11:38] breakfast1: in the book Ripper.lex(code) returns a list
[21:12:09] breakfast1: of items that have a format similar to [[2, 5], :on_ident, "t"]
[21:12:48] breakfast1: but when running in 2.5.0 there is an extra constant (all uppercase) at the end of each item
[21:12:56] breakfast1: for example: [[2, 5], :on_ident, "t", EXPR_END|EXPR_LABEL]
[21:13:15] breakfast1: And I'm curious to know what is the purpose of those constants
[21:13:33] breakfast1: baweaver: of course, thanks for the tip
[21:15:38] breakfast1: I just understoof
[21:17:15] breakfast1: So this constant is the last_state (in parse.y) under which the token has been... well, tokenized
[21:42:48] breakfast1: Quit: breakfast1


[16:03:06] breakfast1: has joined #ruby
[16:07:12] breakfast1: is there a way to define dependencies on a per ruby version basis ?
[16:07:41] breakfast1: for example say i want to be able to support versions 2.2 to 2.5 excluded using some backport
[16:08:17] breakfast1: then i need to differentiate between 2.5 and below
[16:08:30] breakfast1: is that possible inside a gemspec ?
[16:08:38] breakfast1: *i searched*
[18:38:20] breakfast1: Quit: breakfast1


[16:14:10] breakfast1: has joined #ruby


[19:17:54] breakfast1: is it a good practice to leave README and all out of the gem's files ?
[19:18:50] breakfast1: i mean exclude them from spec.files
[20:01:11] breakfast1: Quit: breakfast1


[13:52:38] breakfast1: has joined #ruby
[13:53:53] breakfast1: so adding instance methods in a class adds up methods to all instances
[13:54:10] breakfast1: while adding them in a metaclass adds them up to a single instance
[13:54:35] breakfast1: I can't seem to really understand what metaclasses are for
[13:57:52] breakfast1: the problem is i never used java nor cpp
[13:58:10] breakfast1: but thanks for replying
[14:03:50] breakfast1: has left #ruby: ("Au revoir")


[17:51:18] breakfast1: has joined #ruby
[18:03:31] breakfast1: has left #ruby: ("Au revoir")