Class/Module Index [+]

Quicksearch

Redwood::SerializeLabelsNicely

if you have a @labels instance variable, include this to serialize them nicely as an array, rather than as a nasty set.

Public Instance Methods

after_unmarshal!() click to toggle source
# File lib/sup/source.rb, line 174
def after_unmarshal!
  @labels = Set.new(@labels.map { |s| s.to_sym })
end
before_marshal() click to toggle source
# File lib/sup/source.rb, line 168
def before_marshal # can return an object
  c = clone
  c.instance_eval { @labels = @labels.to_a.map { |l| l.to_s } }
  c
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.