SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Yikes YML RB and files with know estension?

    Exactly what i said in the title.
    I mean how many dang languages does ruby have to do with. and on top of it even rails, its like a language of its own.

    #!/usr/local/bin/ruby
    require File.dirname(__FILE__) + '/../../config/boot'
    require 'commands/process/reaper'
    that is the one of the 20 files in this script that i am studying. but what language is this?

    Then there is RB for ruby and it has some rails applications in there.

    Then What is YML? i mean man lol Im confused about all of this. I mean when i was learning php i didnt have to worry about all of this :P

  2. #2
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That file does in fact have an extension. If you look inside your config folder you will see it is boot.rb

    When including ruby files the extension is optional.

    YML on the other hand is a text format just as perhaps you may have come across php configuration files with the .ini extension. YML is a very simply text format, if you were to open up the database.yml file inside your config folder you will see a good example of how this is used.

    Rails is written in Ruby and therefore Rails files will also have the .rb extension.

  3. #3
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yaml (.yml) is a replacement for XML configurations. YML is easier to write and read.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •