Giter Site home page Giter Site logo

learning-the-ruby-ropes's Introduction

learning-the-ruby-ropes

Rubeh

The basics

Defining methods

def method

end

Defining vars

variable = 'string'
CONSTANT = 0
@global = 0.4
@GLOBAL_CONSTANT  = "#{variable}"

Enumerables

.. go read them in the dock.. you have to!

Pry

Pry is amazing Pry is the interactive debugging library for ruby, it gives you the ability to set debug points in your application and debug from there e.g. inside a method

require 'pry' ; binding.pry

or

require 'pry-remote'; binding.remote_pry

Namespacing

Namespaces are done by methods and classes, you can access an namespace by using :: e.g.: mattivdweem::translate::translationset to access the top/main/root scope you can simpely use ::wacha_wanna_reach with nothing before the first ::

Packagemanager

Ruby uses gems for it's dependency's, gems can be installet by gem install *your gem* or by creating a Gemfile when a gem file is read by bundle it will download the gems for you.

Usefull gems

  • pry
  • svenfuchs/gem-release
  • bundle

Usefull items

  • chruby / rubyenv

learning-the-ruby-ropes's People

Contributors

mattivdweem avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.