saczuac / ruby_UNLP

Project with Ruby's exercises, based on the Ruby's course of the UNLP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TTPS Opción Ruby


En este repositorio se encuentran ejercicios prácticos resueltos de la materia `Ruby` . Cada práctica tiene un 📁 para sus ejercicios

Prácticas



Estándares de codificación Ruby

Variables de Instancia

@var

Variables de Clase

@@var

Variables Globales

$var

Métodos

def to_s (m = 0)
    m*2
end

Clases

class Person
   @@no_of_dogs=0
   def initialize(id, name)
        @p_id=id
        @p_name=name
    end
    def say_hello(name='Sacha')
        puts "Hello! #{name}"
    end
end 

About

Project with Ruby's exercises, based on the Ruby's course of the UNLP


Languages

Language:Ruby 87.4%Language:HTML 7.9%Language:CSS 2.7%Language:JavaScript 1.3%Language:CoffeeScript 0.7%