first?()
Instance Public methods
first? is a predicate to test the call is a first call to first? with current group.
It is useful to format comma separated values as:
1 2 3 4 5 6 7 8 9 | q.group( 1 , '[' , ']' ) { xxx. each {|yyy| unless q.first? q.text ',' q.breakable end ... pretty printing yyy ... } } |
first? is obsoleted in 1.8.2.
Please login to continue.