class Array

Public Instance Methods

eat_lines(&block) click to toggle source
# File lib/hermes/message.rb, line 34
def eat_lines &block
  @pos ||= 0
  while @pos < length do
    begin
      self[ @pos].eat_lines &block
    ensure
      @pos += 1
    end
  end
end
rewind() click to toggle source
# File lib/hermes/message.rb, line 44
def rewind
  each { |e| e.rewind }
  @pos = 0
end
to_hsv() click to toggle source
# File lib/hermes/color.rb, line 271
def to_hsv
  Hermes::Color.from_hsv *self
end
to_rgb() click to toggle source
# File lib/hermes/color.rb, line 268
def to_rgb
  Hermes::Color.new *self
end