- Herşey bir
Object(Nesne) - Her
ObjectBasicObjectden türemiş. (Objective-C NSObject gibi...) Object.methodsile o nesneye ait tüm method'larObject.methods.inspectstring olarak method'lar- Mutlaka bir şey geriye döner. Hiçbir şey dönmese
nildöner.
This file contains hidden or 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
| /** | |
| * Filter to check for CSRF attacks from the ajax requests. | |
| */ | |
| Route::filter('csrf_header', function() | |
| { | |
| if (Session::token() != Request::header('x-csrf-token')) | |
| { | |
| throw new Illuminate\Session\TokenMismatchException; | |
| } | |
| }); |
This file contains hidden or 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
| #!/usr/local/bin/ruby | |
| # A script to download the latest episodes from railscasts.com | |
| # | |
| # author: modsaid <mahmoud@modsaid.com> | |
| # mechanize support: Hossam Hammady <github@hammady.net> | |
| # gem install mechanize | |
| require 'rubygems' | |
| require 'mechanize' |
NewerOlder