Let’s load and enable the view framework: $ rails console Loading local environment (Rails 3.0.3) >> require 'hirb' => true >> Hirb.enable => nil The default configuration provides table views for ActiveRecord::Base descendants. If a class isn’t configured, Hirb reverts to irb’s default echo mode. >> Hirb::Formatter.dynamic_config['ActiveRecord::Base'] => {:class=>Hirb::Helpers::AutoTable, :ancest
In my last post, I demonstrated how Hirb can render puurty tables with automated views. In this post, I’ll show Hirb’s new tree view using its console methods and these three examples- class inheritance trees, nested class trees and Rails’ ActiveRecord trees. First, let’s view a basic tree with Hirb. bash> irb -rubygems -rhirb # Import a view() method we'll use. irb>> extend Hirb::Console => main
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く