This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
umbra:www.portionator.dev ted$ merb-gen app ./ | |
Generating with app generator: | |
[IDENTICAL] spec | |
[ADDED] tasks/merb.thor | |
[CONFLICT] .gitignore | |
1. skip | |
2. overwrite | |
3. render | |
4. diff | |
5. abort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CONFLICT] config/dependencies.rb | |
1. skip | |
2. overwrite | |
3. render | |
4. diff | |
5. abort | |
How do you wish to proceed with this file? | |
4 | |
Showing differences for config/dependencies.rb | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> content = "a string with 'single' quotes in it" | |
=> "a string with 'single' quotes in it" | |
>> content.gsub("'","\'") | |
=> "a string with 'single' quotes in it" | |
>> content.gsub("'","\\'") | |
=> "a string with single' quotes in itsingle quotes in it quotes in it" | |
>> content.gsub("'","\\\'") | |
=> "a string with single' quotes in itsingle quotes in it quotes in it" | |
>> content.gsub("'","\\\\'") | |
=> "a string with \\'single\\' quotes in it" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
umbra:Sites ted$ merb-gen app test | |
Generating with app generator: | |
[ADDED] tasks/merb.thor | |
[ADDED] .gitignore | |
[ADDED] public/.htaccess | |
[ADDED] tasks/doc.thor | |
[ADDED] public/javascripts/jquery.js | |
[ADDED] doc/rdoc/generators/merb_generator.rb | |
[ADDED] doc/rdoc/generators/template/merb/api_grease.js | |
[ADDED] doc/rdoc/generators/template/merb/index.html.erb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lucem ted$ irb | |
>> module Mod | |
>> def test | |
>> | |
>> puts "test" | |
>> end | |
>> end | |
=> nil | |
>> Mod.test | |
NoMethodError: private method `test' called for Mod:Module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lucem:code ted$ thor -T | |
cnf | |
--- | |
cnf:hello Say Hello | |
Lucem:code ted$ thor hello | |
The thor:runner namespace doesn't have a `hello' task | |
Lucem:code ted$ thor cnf:hello | |
There was no available namespace `cnf'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17:09:25 <+RichOnRails> here is my merb gems | |
17:09:28 <+RichOnRails> merb (1.0.7.1) | |
17:09:28 <+RichOnRails> merb-action-args (1.0.7.1) | |
17:09:28 <+RichOnRails> merb-assets (1.0.7.1) | |
17:09:29 <+RichOnRails> merb-auth (1.0.7.1) | |
17:09:29 <+RichOnRails> merb-auth-core (1.0.7.1) | |
17:09:30 <+RichOnRails> merb-auth-more (1.0.7.1) | |
17:09:32 <+RichOnRails> merb-auth-slice-password (1.0.7.1) | |
17:09:34 <+RichOnRails> merb-cache (1.0.7.1) | |
17:09:36 <+RichOnRails> merb-core (1.0.7.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Homepage and Information Routing | |
### What's Merb? | |
### Who's using Merb? | |
## Philosophy | |
### Public/Private API | |
### Agnosticism and Componentized Architecture | |
### Ruby is awesome, use Ruby. | |
### Principled Development | |
## Design Principles | |
### MVC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Memoizer | |
def method_added(meth) | |
@_methods_to_memoize ||= [] | |
@_methods_to_memoize << meth | |
end | |
def methods_to_memoize | |
@_methods_to_memoize | |
end | |
end |
OlderNewer