1
@subscriptions = Hash.new {|h,k| h[k] = SubscriptionType.make(k)}

Ruby On Hash assignment

by ReinH, September 09, 2009 18:35

One option is to make a fac...

F30b04ed4d0b3fc4bc791a28815f34ca Talk
1
2
3
4
def self.get_next
  @i += 1
  @i = 0 if @i >= CONT.length # fix bug where @i == CONT.length
...

Ruby On [Ruby] Iterating...

by ReinH, September 09, 2009 18:11

I'm not sure that this can ...

F30b04ed4d0b3fc4bc791a28815f34ca Talk

Ruby On Call a function to each member

by ReinH, September 09, 2009 17:54

& is not a unary method. It...

F30b04ed4d0b3fc4bc791a28815f34ca Talk
1
2
3
4
def button(title, values)
  values[:type] ||= "button"
  values[:category] ||= "primary"
...

Ruby On Button code creates a gener...

by ReinH, September 09, 2009 17:41 Star_fullStar_fullStar_fullStar_fullStar_full

This code has issues in the...

F30b04ed4d0b3fc4bc791a28815f34ca Talk