Skip to content

Commit

Permalink
added footers to everything except Andand
Browse files Browse the repository at this point in the history
  • Loading branch information
raganwald committed Oct 7, 2009
1 parent 60d5aab commit d90c656
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
6 changes: 5 additions & 1 deletion doc/block_anaphora.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ It works best when you would naturally use the word "it" or the possessive "its"

**more**

The post [Anaphora in Ruby](http://github.com/raganwald/homoiconic/blob/master/2009-09-22/anaphora.md#readme "") discusses block anaphora.
The post [Anaphora in Ruby](http://github.com/raganwald/homoiconic/blob/master/2009-09-22/anaphora.md#readme "") discusses block anaphora.

---

[RewriteRails](http://github.com/raganwald/rewrite_rails/tree/master#readme)
6 changes: 5 additions & 1 deletion doc/call_by_name.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,8 @@ For methods with a splatted parameter, RewriteRails makes use of a helper class,

Github user [andhapp](http://github.com/andhapp) asked a question: *I was going through the CallByName documentation provided and noticed something unusual. Under "A Peek Behind The Curtain", there is a code snippet evaluating a class (class\_eval). The following code snippet shows the regenerated .rb file but now the same methods are shown as class methods. Isn't class\_eval meant to produce instance methods as opposed to class methods? In the next few code snippets, the methods are indeed used as class methods. May be I am missing an important point. I thought this might be a glitch in the documentation or may be I am not thinking straight. Either way, I would be extremely delighted if you could please enlighten me.*

My answer: *You use them as if they were instance methods defined in Kernel, so I designed it so that you would write them as instance methods. RewriteRails happens to rewrite them as class methods and then rewrite your code to call them as such, but that it an "implementation detail," as it were. To your .rr code they look like instance methods.*
My answer: *You use them as if they were instance methods defined in Kernel, so I designed it so that you would write them as instance methods. RewriteRails happens to rewrite them as class methods and then rewrite your code to call them as such, but that it an "implementation detail," as it were. To your .rr code they look like instance methods.*

---

[RewriteRails](http://github.com/raganwald/rewrite_rails/tree/master#readme)
6 changes: 5 additions & 1 deletion doc/extension_methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,8 @@ However, go wild with:
Freshwater::ExtensionMethods::Numeric
Seawater::ExtensionMethods::Numeric

Don't forget that like extension methods defined in `RewriteRails::ExtensionMethods`, you need to make sure that Rails loads them before processing your .rr files.
Don't forget that like extension methods defined in `RewriteRails::ExtensionMethods`, you need to make sure that Rails loads them before processing your .rr files.

---

[RewriteRails](http://github.com/raganwald/rewrite_rails/tree/master#readme)
6 changes: 5 additions & 1 deletion doc/into.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ With *String to Block* and you will get:
Limitations
---

The monkey-patching version also works with things that can be converted to procs with `#to_proc`. This version does not, because it is strictly syntactical.
The monkey-patching version also works with things that can be converted to procs with `#to_proc`. This version does not, because it is strictly syntactical.

---

[RewriteRails](http://github.com/raganwald/rewrite_rails/tree/master#readme)
6 changes: 5 additions & 1 deletion doc/returning.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ Like all processors in RewriteRails, #returning is only rewritten in `.rr` files
**More**

* [returning.rb](http://github.com/raganwald/rewrite_rails/tree/master/lib/rewrite_rails/returning.rb "")
* [Rewriting Returning in Rails](http://github.com/raganwald/homoiconic/blob/master/2009-08-29/returning.md#readme "")
* [Rewriting Returning in Rails](http://github.com/raganwald/homoiconic/blob/master/2009-08-29/returning.md#readme "")

---

[RewriteRails](http://github.com/raganwald/rewrite_rails/tree/master#readme)
4 changes: 4 additions & 0 deletions doc/string_to_block.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,7 @@ Third (and this is a subtle point), `String#to_proc` worked by using `eval` in t
# => [2, 3, 4, 5, 6, 7, 8, 9, 10, 11]

This works because RewriteRails doesn't construct a string and ask Ruby to `eval` it globally at run time, it converts the code in the file and let's Ruby's interpreter determine how to treat `increase`.

---

[RewriteRails](http://github.com/raganwald/rewrite_rails/tree/master#readme)

0 comments on commit d90c656

Please sign in to comment.