Sha256: 9f0a9a250a7f365fbfd9e55607b9ac58f0f7489f22822629fa8e5c472bfa0a1a
Contents?: true
Size: 703 Bytes
Versions: 2
Compression:
Stored size: 703 Bytes
Contents
module Hirb # This class is meant to be extended to provide methods for use in a console/irb shell. # For example: # irb>> extend Hirb::Console # irb>> view 'some string', :class=>Some::String::Formatter # irb>> table [[:row1], [:row2]] module Console # Renders a table for the given object. Takes same options as Hirb::Helpers::Table.render. def table(output, options={}) Hirb::View.console_render_output(output, options.merge(:class=>"Hirb::Helpers::AutoTable")) end # Renders any specified view for the given object. Takes same options as Hirb::View.console_render_output. def view(*args) Hirb::View.console_render_output(*args) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
cldwalker-hirb-0.1.2 | lib/hirb/console.rb |
hirb-0.1.2 | lib/hirb/console.rb |