Questions tagged [ri]

The Ruby documentation viewer, invoked through the command-line.

The ri command can be used to view Ruby documentation generated with RDoc.

57 questions
1
vote
1 answer

Unable to run fastri on cygwin: uninitialized constant Gem::Version (NameError)

I'm trying to setup fastri (http://eigenclass.org/hiki/fastri) on emacs running on cygwin in windows. The ruby install is also from cygwin, not the windows version of ruby. After downloading, unpacking the tarball and running setup.rb, when I…
Rohith
  • 2,043
  • 1
  • 17
  • 42
1
vote
2 answers

RDoc : Change name of 'Atttributes:' section in ri-documentation

I'm using some meta-programming to generate a bunch of methods in ruby like so: class EmotionalObject def self.mood( name, *details ) define_method(name) do # ... end end mood :happy, #... mood :sad, #... mood :ebuillent,…
rampion
  • 87,131
  • 49
  • 199
  • 315
1
vote
0 answers

Is generating ruby docs (ri, rdocs) via RVM gemset specific?

Using RVM I can generate docs using: rvm docs generate My question is do I have to do this for every gemset, or is it global? I frequently switch gemsets while working on different projects. I would like to have ri always available. Does the above…
MERM
  • 629
  • 7
  • 21
1
vote
1 answer

How should I tell ri to look in a path for Ruby?

I have the file named new-c.ri and I want to use ri to see its usage. However, it is not in the default directory where ri looks for. How should I do?
user3477465
  • 183
  • 2
  • 2
  • 6
1
vote
1 answer

Suppressing the ri and rdoc

I want to suppress the downloading of ri and rdoc while i install new gems on my windows machine. On linux we can edit .gemrc file. What is a way to do it in Windows?
Rishikesh Shukla
  • 317
  • 1
  • 12
1
vote
3 answers

What is the correct way to exit RI?

What is the right combination for exit RI on Ubuntu(13.04)? For example, the following line: ri GC::enable gives me: pressing the following commands do nothing: PAUSE/BREAK, Home, End, Ctrl+Shift+D The only thing that exist is ctrl+c but it throws…
gotqn
  • 42,737
  • 46
  • 157
  • 243
1
vote
0 answers

Why doesn't `ri String#upcase` work but `ri upcase` does?

I can do ri upcase to see documentation: $ ri upcase ...lots of output... and I should be able to do ri String#upcase, but that gives me: $ ri String#upcase Nothing known about String#upcase $ ri 'String#upcase' Nothing known about String#upcase $…
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
1
vote
0 answers

Why does my `ri` lack documentation of some built-in library?

Possible Duplicate: Nothing known about… when trying ri String#upcase Ruby The version info looks like this: Hanfeis-MacBook-Pro-2:ruby ad9075$ rvm -v rvm 1.17.0 (stable) by Wayne E. Seguin , Michal Papis…
Hanfei Sun
  • 45,281
  • 39
  • 129
  • 237
1
vote
1 answer

How to set style for RichTextBox?

RichTextBox has such dom level hierarchy? I found setting style name to iframe doesn't work,and It must be set to body element. I tried to do it like this(in constructor): …
Alex Luya
  • 9,412
  • 15
  • 59
  • 91
1
vote
1 answer

Ruby ri at Windows Command prompt does not give correct information

Ri seems to be giving results for Rails. Something is not right. Can anyone help me get useful results from ri. I have an otherwise clean and working up-to-date installation of Ruby (1.9.3) and Rails (3.2.3). For example if do ri Range I get…
Will
  • 337
  • 4
  • 15
0
votes
1 answer

Ruby ri documentation error

I have installed Ruby through the RubyInstaller, which didn't include the ri documentation. Then I rebuilt it through rdoc --all --ri. But when I try to use it, I get weird chars like: C:\Ruby>ri Array ←[0m←[1;32mArray < Object←[m (from…
user522860
0
votes
2 answers

Why doesn't ri know anything about Rails?

$ ri link_to Nothing known about .link_to Actually, it seems that ri knows nothing about Rails. But ri --list-doc-dirs shows the Rails folders are…
Rocky
  • 5,486
  • 8
  • 32
  • 36
0
votes
2 answers

Does ri know about all ruby classes?

When I pass CSV to ri I get this output Nothing known about CSV I thought all ruby classes are documented with ri.
lampShade
  • 4,361
  • 8
  • 34
  • 50
0
votes
2 answers

Fix hover "ri" in Janus, Vim setup?

I have installed Janus to improve my vim. All works fine, except for the Ri documentation, that opens on hovering a keyword. On my installation it shows the output of "ri --help" instead of the documentation of the keyword. I have found a way to…
berkes
  • 26,996
  • 27
  • 115
  • 206
0
votes
0 answers

Access ri documentation right from the ruby terminal or rails console?

I know exiting irb for a moment or opening a new terminal tab to use ri is trivial, but it could be slightly more convenient in terms of developer flow to be able to use ri in the irb (or rails console) itself. That would allow retrieval of…
stevec
  • 41,291
  • 27
  • 223
  • 311