SlideShare a Scribd company logo
DEFAULT DIRECTORY STRUCTURE                 PRE-DEFINED VARIABLES                       Methods

                                                              $!           Exception information          Arrays
                     rails_root
                                                                                                          assoc
                        app                                   $&           String of last match
                                                                                                          at
                              apis                            $`           String left of last match      clear
                              controllers                     $'           String right of last match     collect!
                                                              $+           Last group of last match       compact!
                                 application.rb                                                           concat
                              helpers                         $N           Nth group of last match        delete
                                 application_helper.rb        $=           Case insensitive flag          delete_at
                                                              $/           Input record separator         delete_if
                              models
Methods                                                       $           Output record separator
                                                                                                          each
                              views                                                                       each_index
   Strings                       layouts                      $,           Output field separator         empty?
capitalize!                                                   $.           Current line number of         eql?
     center             components
    chomp!                                                                 last file read                 fill
                        config                                                                            first
        chop!                                                 $>           Default output for print
     concat                   environments                                                                flatten!
        count                    development.rb               $_           Last input line of string      include?
         crypt                                                $0           Name of script                 index
     delete!                     production.rb
                                                                                                          indexes
downcase!                        test.rb                      $*           Command line arguments
                                                                                                          join
       dump                                                   $stderr      Standard error output
         each                 database.yml                                                                last
each_byte                                                     $stdin       Standard input                 length
                              environment.rb
    empty?                                                                                                nitems
                              routes.rb                       $stdout      Standard output
        gsub!                                                                                             pack
         hash           db                                    $-a          True if -a is set.             pop
           hex                                                $-d          Status of -d switch            push
   include?             doc
        index                                                 $-l          True if -l is set              rassoc
                        lib                                                                               reject!
       intern                                                 $-p          True if -p is set
      length            log                                                                               replace
ljust, rjust                  development.log                 $-v          Verbose Flag                   reverse!
        next!                                                                                             reverse_each
           oct                production.log
                                                                                                          rindex
    replace                   server.log                      RESERVED WORDS                              shift
   reverse!
      rindex                  test.log                                                                    slice!
                                                              =begin         elsif              rescue    sort!
          scan          public
        slice!                                                =end           end                retry     uniq!
          split               images                                                                      unshift
                                                              BEGIN          ensure             return
  squeeze!                    javascripts
        strip!                                                END            false              self      Validation
          sub!                   controls.js
                                                              alias          for                super     condition_block?
          sum                    dragdrop.js
swapcase!                                                     and            if                 then      create!
            tr!                  effects.js                                                               evaluate_condition
                                                              begin          in                 true
         tr_s!                   prototype.js                                                             validate
    unpack                                                    break          module             undef     validate_on_create
    upcase!                   stylesheets
                                                              case           next               unless    validate_on_update
          upto                .htaccess                                                                   validates_acceptance_of
                                                              class          nil                until
    Regex                     404.html                                                                    validates_associated
                                                              def            not                when      validates_confirmation_of
    escape                    500.html
last_match                                                    defined?       or                 while     validates_each
        new                   dispatch.cgi
                                                              do             redo               yield     validates_exclusion_of
      quote                   dispatch.fcgi                                                               validates_format_of
  casefold?                                                   else                                        validates_inclusion_of
      kcode                   dispatch.rb
                                                                                                          validates_length_of
     match                    favicon.ico
     source                                                   REGULAR EXPRESSIONS SYNTAX                  validates_numericality_of
                              index.html                                                                  validates_presence_of
      Time              script                                                                            validates_size_of
    asctime                                                   ^          Start of string                  validates_uniqueness_of
                        test
      ctime                                                   $          End of string
         day                  fixtures                                                                    Enumerable Mixin
       gmt?                                                   .          Any single character
                              functional                                                                  collect
    gmtime                                                    (a|b)      a or b
       hour                   mocks                                                                       each_with_index
       isdst                                                  (...)      Group section                    entries
                                 development
  localtime                                                   [abc]      Item in range (a or b or c)      find
      mday                       test                                                                     find_all
         min                                                  [^abc]     Not in range (not a or b or c)
                              unit                                                                        grep
        mon                                                   a?         Zero or one of a
                              test_helper.rb                                                              include?
     month
         sec                                                  a*         Zero or more of a                max
                        vendor                                                                            min
   strftime                                                   a+         One or more of a
     tv_sec                                                                                               reject
    tv_usec                                                   a{3}       Exactly 3 of a                   sort
       usec       METHODS NOTE                                a{3,}      3 or more of a
         utc                                                                                              Available free from
        utc?                                                  a{3,6}     Between 3 and 6 of a
                  ! - Denotes where a tailing ! may be                                                    AddedBytes.com
      wday                                                    !(pattern) "Not" prefix. Apply rule when
       yday       ! - used. A colourless ! denotes that the
        year                                                             URL does not match pattern.      Ruby on Rails Logo
                  ! - ! is compulsory.
       zone                                                                                               used with permission.

More Related Content

Similar to Pdf sample3

Cake php 1.2-cheatsheet
Cake php 1.2-cheatsheetCake php 1.2-cheatsheet
Cake php 1.2-cheatsheet
PrinceGuru MS
 
Mod Perl Quick Reference Card
Mod Perl Quick Reference CardMod Perl Quick Reference Card
Mod Perl Quick Reference Card
Faryne Hsieh
 
perl-regexp-refcard-a4
perl-regexp-refcard-a4perl-regexp-refcard-a4
perl-regexp-refcard-a4
tutorialsruby
 
perl-regexp-refcard-a4
perl-regexp-refcard-a4perl-regexp-refcard-a4
perl-regexp-refcard-a4
tutorialsruby
 

Similar to Pdf sample3 (12)

perl course-in-mumbai
 perl course-in-mumbai perl course-in-mumbai
perl course-in-mumbai
 
perl course-in-mumbai
perl course-in-mumbaiperl course-in-mumbai
perl course-in-mumbai
 
UNIX - Class1 - Basic Shell
UNIX - Class1 - Basic ShellUNIX - Class1 - Basic Shell
UNIX - Class1 - Basic Shell
 
Cake php 1.2-cheatsheet
Cake php 1.2-cheatsheetCake php 1.2-cheatsheet
Cake php 1.2-cheatsheet
 
Translate Drupal from Drupalcamp Vienna
Translate Drupal from Drupalcamp ViennaTranslate Drupal from Drupalcamp Vienna
Translate Drupal from Drupalcamp Vienna
 
Translate Drupal from Drupalcamp Prague
Translate Drupal from Drupalcamp PragueTranslate Drupal from Drupalcamp Prague
Translate Drupal from Drupalcamp Prague
 
Ruby on-rails-cheat-sheet-v1
Ruby on-rails-cheat-sheet-v1Ruby on-rails-cheat-sheet-v1
Ruby on-rails-cheat-sheet-v1
 
Mod Perl Quick Reference Card
Mod Perl Quick Reference CardMod Perl Quick Reference Card
Mod Perl Quick Reference Card
 
perl-regexp-refcard-a4
perl-regexp-refcard-a4perl-regexp-refcard-a4
perl-regexp-refcard-a4
 
perl-regexp-refcard-a4
perl-regexp-refcard-a4perl-regexp-refcard-a4
perl-regexp-refcard-a4
 
newperl5
newperl5newperl5
newperl5
 
newperl5
newperl5newperl5
newperl5
 

More from Apoorvi Kapoor (20)

2slidedeck-150318164339-conversion-gate01
2slidedeck-150318164339-conversion-gate012slidedeck-150318164339-conversion-gate01
2slidedeck-150318164339-conversion-gate01
 
Hiking guide2014
Hiking guide2014Hiking guide2014
Hiking guide2014
 
Readme
ReadmeReadme
Readme
 
Empty
EmptyEmpty
Empty
 
111111
111111111111
111111
 
03 03 what_aboutbigdata
03 03 what_aboutbigdata03 03 what_aboutbigdata
03 03 what_aboutbigdata
 
Hiking guide2014
Hiking guide2014Hiking guide2014
Hiking guide2014
 
111111
111111111111
111111
 
Abcd feihfiewfn
Abcd feihfiewfnAbcd feihfiewfn
Abcd feihfiewfn
 
Slide share culture_code_template
Slide share culture_code_templateSlide share culture_code_template
Slide share culture_code_template
 
Webtech1b
Webtech1bWebtech1b
Webtech1b
 
Webtech1b
Webtech1bWebtech1b
Webtech1b
 
Webtech1b
Webtech1bWebtech1b
Webtech1b
 
Test
TestTest
Test
 
5x5
5x55x5
5x5
 
Lorem
LoremLorem
Lorem
 
SlideShare Hack Day 2013
SlideShare Hack Day 2013SlideShare Hack Day 2013
SlideShare Hack Day 2013
 
Profile Pictures
Profile PicturesProfile Pictures
Profile Pictures
 
SlideShare HACK Day 2013
SlideShare HACK Day 2013SlideShare HACK Day 2013
SlideShare HACK Day 2013
 
SlideShare HACK Day 2013
SlideShare HACK Day 2013SlideShare HACK Day 2013
SlideShare HACK Day 2013
 

Pdf sample3

  • 1. DEFAULT DIRECTORY STRUCTURE PRE-DEFINED VARIABLES Methods $! Exception information Arrays rails_root assoc app $& String of last match at apis $` String left of last match clear controllers $' String right of last match collect! $+ Last group of last match compact! application.rb concat helpers $N Nth group of last match delete application_helper.rb $= Case insensitive flag delete_at $/ Input record separator delete_if models Methods $ Output record separator each views each_index Strings layouts $, Output field separator empty? capitalize! $. Current line number of eql? center components chomp! last file read fill config first chop! $> Default output for print concat environments flatten! count development.rb $_ Last input line of string include? crypt $0 Name of script index delete! production.rb indexes downcase! test.rb $* Command line arguments join dump $stderr Standard error output each database.yml last each_byte $stdin Standard input length environment.rb empty? nitems routes.rb $stdout Standard output gsub! pack hash db $-a True if -a is set. pop hex $-d Status of -d switch push include? doc index $-l True if -l is set rassoc lib reject! intern $-p True if -p is set length log replace ljust, rjust development.log $-v Verbose Flag reverse! next! reverse_each oct production.log rindex replace server.log RESERVED WORDS shift reverse! rindex test.log slice! =begin elsif rescue sort! scan public slice! =end end retry uniq! split images unshift BEGIN ensure return squeeze! javascripts strip! END false self Validation sub! controls.js alias for super condition_block? sum dragdrop.js swapcase! and if then create! tr! effects.js evaluate_condition begin in true tr_s! prototype.js validate unpack break module undef validate_on_create upcase! stylesheets case next unless validate_on_update upto .htaccess validates_acceptance_of class nil until Regex 404.html validates_associated def not when validates_confirmation_of escape 500.html last_match defined? or while validates_each new dispatch.cgi do redo yield validates_exclusion_of quote dispatch.fcgi validates_format_of casefold? else validates_inclusion_of kcode dispatch.rb validates_length_of match favicon.ico source REGULAR EXPRESSIONS SYNTAX validates_numericality_of index.html validates_presence_of Time script validates_size_of asctime ^ Start of string validates_uniqueness_of test ctime $ End of string day fixtures Enumerable Mixin gmt? . Any single character functional collect gmtime (a|b) a or b hour mocks each_with_index isdst (...) Group section entries development localtime [abc] Item in range (a or b or c) find mday test find_all min [^abc] Not in range (not a or b or c) unit grep mon a? Zero or one of a test_helper.rb include? month sec a* Zero or more of a max vendor min strftime a+ One or more of a tv_sec reject tv_usec a{3} Exactly 3 of a sort usec METHODS NOTE a{3,} 3 or more of a utc Available free from utc? a{3,6} Between 3 and 6 of a ! - Denotes where a tailing ! may be AddedBytes.com wday !(pattern) "Not" prefix. Apply rule when yday ! - used. A colourless ! denotes that the year URL does not match pattern. Ruby on Rails Logo ! - ! is compulsory. zone used with permission.