Class Object
In: lib/bio/shell/object.rb  (CVS)
Parent: Object

Object extention

Methods

output  

Attributes

memo  [RW]  Couldn‘t work for Fixnum (Marshal)

Public Instance methods

[Source]

# File lib/bio/shell/object.rb, line 22
  def output(format = :yaml)
    case format
    when :yaml
      self.to_yaml
    when :html
      format_html
    when :inspect
      format_pp
    when :png
      # *TODO*
    when :svg
      # *TODO*
    when :graph
      # *TODO* (Gruff, RSRuby etc.)
    else
      #self.inspect.to_s.fold(80)
      self.to_s
    end
  end

[Validate]