kirillow

Activity Graph

Page 1 of 1

2017-06-12

[17:40:40] kirillow: has joined #ruby
[17:41:04] kirillow: please halp: what is <%% in erb?
[17:46:23] kirillow: aaah that makes sense!
[18:05:22] kirillow: Quit: WeeChat 1.7

2016-05-22

[09:05:51] kirillow: has joined #ruby
[09:07:40] kirillow: can anybody give me a hint as to how to do this: https://gist.github.com/anonymous/e510af0a925a3b10f07c0ffde5c0b5ff
[09:07:47] kirillow: in a functional programming style
[09:12:30] kirillow: jhass: thanks!
[09:12:33] kirillow: Quit: WeeChat 1.0.1
[10:42:34] kirillow: has joined #ruby
[10:45:11] kirillow: is there a concise way to distribute the contents of a hash among several variables like this: a, b = distribute(hash_with_two_key_value_pairs)
[12:31:10] kirillow: Quit: WeeChat 1.0.1
[17:52:44] kirillow: has joined #ruby
[17:55:01] kirillow: I'm using tilt to render some scss, but it only seems to execute @import only on the first level. So my main.scss imports _typey.scss, but typey/_defaults.scss in _typey.scss will not be imported.
[17:55:15] kirillow: this is the line: File.write(file_destination, Tilt.new(file_path).render(self))
[17:55:55] kirillow: where file_path is the path to my main.scss which does @require 'typey' and so on
[18:41:54] kirillow: Quit: WeeChat 1.0.1

2016-05-19

[19:49:51] kirillow: has joined #ruby
[19:53:30] kirillow: Method `collect_files` is reading files in a directory and turning them into objects of `kind`. Class `kind` stores every initialized `kind` in an array `@kind`. How do I get this array without initializing another `kind`?
[19:56:33] kirillow: https://gist.github.com/anonymous/ff9e556487ecf88a53e062d2fbea68d6
[20:00:49] kirillow: why is it dangerous?
[20:01:28] kirillow: ive have been switching things around a lot
[20:02:53] kirillow: before that i stored the objects in an array outside of class but that ultimately had some downsides
[20:03:08] kirillow: im really uncertain of how you do "this"
[20:16:48] kirillow: Quit: WeeChat 1.0.1

2016-05-16

[05:48:56] kirillow: has joined #ruby
[05:53:21] kirillow: could someone please take a look at this https://gist.github.com/anonymous/cc7ffd05bf8dd59b96a03bc23b2462db
[05:54:05] kirillow: and explain to me why index.slim is able to access @posts but layout.slim can not access @config?
[05:54:24] kirillow: `NoMethodError: undefined method `[]' for nil:NilClass`
[05:55:43] kirillow: thanks i will take a look
[08:28:35] kirillow: Ping timeout: 265 seconds
[08:32:17] kirillow: has joined #ruby
[08:33:30] kirillow: Client Quit

2016-05-14

[19:48:00] kirillow: has joined #ruby
[19:57:26] kirillow: how do I tell slim what path the template files are in?
[20:16:32] kirillow: smathy, thanks! I looked in a completely wrong place
[20:21:54] kirillow: Quit: WeeChat 1.0.1
[20:25:55] kirillow: has joined #ruby
[20:28:21] kirillow: another question: i've got a file helpers.rb with some methods. I want those methods to be available in all *.slim files. How, roughly, do I go about doing this? This is for a static website
[20:33:03] kirillow: Quit: WeeChat 1.0.1

2016-05-08

[10:45:57] kirillow: has joined #ruby
[10:46:08] kirillow: does somebody here know yaml?
[10:47:42] kirillow: when I'm doing YAML.dump("text") it prints "--- text\n...\n"
[10:48:31] kirillow: but things like YAML.dump("description: text") do not end the yaml with \n...\n
[10:48:46] kirillow: .to_yaml doesn't do this either
[10:48:59] kirillow: i WANT to append the ...
[10:49:24] kirillow: do i have to do this manually except when issuing YAML.dump("sometext")
[11:06:55] kirillow: that wasn't a response to me
[16:54:17] kirillow: Ping timeout: 260 seconds
[17:01:19] kirillow: has joined #ruby
[21:33:12] kirillow: Quit: WeeChat 1.0.1

2016-05-05

[19:15:48] kirillow: has joined #ruby
[19:17:21] kirillow: i parsed the yaml in a textfile using yaml/psych. so theres a yaml object. now I want to return a specific entru. do i really have to dump the whole string and look manually???
[20:20:15] kirillow: Ping timeout: 250 seconds
[21:11:55] kirillow: has joined #ruby
[22:03:27] kirillow: Quit: WeeChat 1.0.1

2016-05-02

[18:23:59] kirillow: has joined #ruby
[18:24:58] kirillow: what does `$: << '.'` mean? (config.ru of a sinatra app)
[18:25:51] kirillow: how would you - i guess - normally write it?
[21:24:30] kirillow: Ping timeout: 246 seconds
[21:25:17] kirillow: has joined #ruby
[21:25:37] kirillow: Client Quit