Talk notes from Vim for Ruby and Rails workshop at BostonRb March 2014 meetup.
https://gist.github.com/christoomey/9357451
- Chris Toomey
- @christoomey
- http://ctoomey.com
- github.com/christoomey
Rails.vim
Talk notes from Vim for Ruby and Rails workshop at BostonRb March 2014 meetup.
https://gist.github.com/christoomey/9357451
Rails.vim
class User | |
attr_reader :name, :todos | |
def initialize(name, password, gender) | |
@name = name | |
@password = password | |
@gender = gender | |
@todos = [] | |
end | |
def create_todo(todo) |
#INCOMPLETE | |
require 'pry' | |
require 'csv' | |
require_relative 'cash_3_methods' | |
def build_array_from_csv(filename) |
#INCOMPLETE | |
#TO DO LIST OF THING THAT NEED TO BE MADE | |
#1- count function | |
#2 - make it look pretty | |
#3- make it lose | |
def update_the_user_facing_word(hidden_word, guess, user_facing_word) |
{ | |
total: 20, | |
movies: [ | |
{ | |
id: "771311994", | |
title: "Need For Speed", | |
year: 2014, | |
mpaa_rating: "PG-13", | |
runtime: 130, | |
release_dates: { |
class Whiteboard | |
attr_accessor :contents | |
def initialize(contents = []) | |
@contents = contents | |
end | |
def erase | |
@contents= [] |
def owner = (new_owner) | |
@owner = new_owner | |
end | |
def cylinders = (new_cylinders) | |
@cylinders = new_cylinders | |
end |
def rank | |
@rank | |
end | |
def suit | |
@suit | |
end |
def owner | |
@owner | |
end | |
def cylinders | |
@cylinders | |
end |
class Television | |
def initialize(brand, price, size) | |
@brand = brand | |
@price = price | |
@size = size | |
end | |
def brand |