Feb01
Tic Tac Toe in Ruby
Just wanted to do it, 'is all. An N x N tictactoe game on the CLI in ruby. Actually, I wanted to see just how quickly I could write a functional one. It took about an hour and a half.
Continue reading »
by shahrier akram || gdakram
Feb01
Just wanted to do it, 'is all. An N x N tictactoe game on the CLI in ruby. Actually, I wanted to see just how quickly I could write a functional one. It took about an hour and a half.
Continue reading »
Dec04
If you find yourself doing some meta-programming in ruby with module_eval (aka class_eval), you may want to take heed of this gotcha if you exercise string interpolation inside the evaluated block. This was tested on versions 1.8.7, 1.9.1 and 1.9.2. Continue reading »
Dec02
There are multiple ways to implement the delegation pattern in ruby. This blog post will illustrate four of them. Let's provide some context first. Continue reading »
Nov20
It's been an itch to scratch lately and finally got around to understanding how to go about writing an example DSL in ruby. Machinist, sinatra, rake, cucumber were all Continue reading »
Aug18
Mar28
Apr29
Apr14
Apr13
Apr10
Some ruby
class Gdakram
def self.quacks
"#{self} quack quack"
end
end
Gdakram.quacks
Continue reading »