태그 : ruby 요약보기전체보기목록닫기

1 2

Use Ruby Proc class for factory pattern

I think Proc is good for factory pattern. Of course, if the concrete product needs subclassing or anything else that real class is needed, we have to code class for concrete product. However, if it ...

In Ruby, {} is hash? or block?

It's just for fun.  Don't be serious. :-) Let's look below codes. puts "start line :::::::::::::::::::::::::::::::::::::::::::::"Object.class_eval do  def hello    "Hello...

My server side code for studing book 'Head Rush Ajax' with Sinatra (ruby)

Welcome any advice, corrections, suggestions. Some methods are fake response code to concentrate on ajax. $:.unshift File.dirname(__FILE__) + '/sinatra/lib' require 'rubygems' require 'mysql' ...

Living on the edgy of Sinatra

Generally, many ruby users like using edgy version of ruby things. Sinatra is also same, so many guides were based on Sinatra edgy version. For example, some guide use "use" and "enable" methods ...

External iterator for ruby array my own way..

It's just some silly codes. Not tested enough, it's not ready to handle exceptional situations, not guaranteed thread safe !! Sometimes, I think if I have external iterator for ruby array, my wor...

RubyFringe 2008 in Toronto

RubyFringe 여기와서 두 번째 컨퍼런스 참가입니다. 첫 번째는 미쿡 버지니아주에서 열렸던 AgileITX(이건 아마 한국 돌아가서나 포스팅할 것 같네요).  RubyFringe 는 캐나다 토론에서 열리는 것이구요 - 주최가 unspace 이다보니. 이 회사는 Rails Pub Night 도 매달 열고 있지요 - 19일부터 20일까지...
1 2


구글애드센스