Skip to content

Instantly share code, notes, and snippets.

View danarmstrong-io's full-sized avatar

Dan Armstrong danarmstrong-io

View GitHub Profile
@danarmstrong-io
danarmstrong-io / 0.2.1-boggle_class_from_methods.rb
Last active August 29, 2015 13:55 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1boggle class challenge
# CODE:
class BoggleBoard
def initialize(board)
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end