Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Object

Object extention

Attributes

memo[RW]

Couldn't work for Fixnum (Marshal)

Public Instance Methods

output(format = :yaml) click to toggle 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]

Generated with the Darkfish Rdoc Generator 2.