Currently if one Ruby gem depends on the C extension of another Ruby gem, the only way find the header of that gem is to run a `Gem::Specification.find_by_name` in the extconf.rb of the gem needing the header and then adding the folder...v0dro (Sameer Deshmukh)
@hsbt what do you think about writing the docs within C API files like `ruby.h`, `intern.h` and `extension.h` itself so that ruby-doc.org can run doxygen on them to generate the relevant documents? It will keep the documentation up-to-da...v0dro (Sameer Deshmukh)
Alright. I think its a matter of adding the extension.rdoc file to the ruby-doc.org sources and then push changes to extension.rdoc in the core ruby repo.v0dro (Sameer Deshmukh)
OK I'm convinced this is probably a bad idea since `step` returns an `ArithmeticSequence` and is not a property of `Range`. Closing the issue.v0dro (Sameer Deshmukh)
v0dro (Sameer Deshmukh) wrote: > I would like to propose making changes to the Range constructor so that a user can specify > ... The array will return `[1,4,7,10]`. Sorry for previous mistake.v0dro (Sameer Deshmukh)
Advantages of changing the constructor: * Makes it easy to read test code for someone new to Ruby. * Consistency in specifying step count in constructor (simple and straightforward way) and using the shorter syntax (idiomatic Ruby way...v0dro (Sameer Deshmukh)
I would like to propose making changes to the Range constructor so that a user can specify a `step` count along with `start` and `stop`. Since Ruby 2.6 will introduce a `step` property in Ranges anyway I think this will be a useful a...v0dro (Sameer Deshmukh)
Currently in Ruby head (2.6) the following gives an error: ~~~ ruby 2.6-head :001 > a = [1,2,3,4] # => [1, 2, 3, 4] 2.6-head :002 > a[0..Float::INFINITY] #Traceback (most recent call last): # 2: from /home/sameer/.rvm/rubie...v0dro (Sameer Deshmukh)
Alright. So as a first step can you please tell me how it would be possible to create this page for the C API? Or maybe start with the wiki? I can send a PR with some preliminary docs once you approve a course of action.v0dro (Sameer Deshmukh)