Skip to content

Commit

Permalink
add WebiInstance shortcuts to 'boirb'
Browse files Browse the repository at this point in the history
  • Loading branch information
semmons99 committed Feb 9, 2010
1 parent aa74dd6 commit 58f2c9e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bin/boirb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,18 @@ def query(stmt)
end

def open_webi(docid)
@boe.open_webi(docid) if connected?
@doc = @boe.open_webi(docid) if connected?
@objs = @doc.objects
@vars = @doc.variables
@doc
end

def objects
@objs
end

def variables
@vars
end

IRB.start_session(Kernel.binding)

0 comments on commit 58f2c9e

Please sign in to comment.