2009-08-13から1日間の記事一覧

prawn:Prawn::Document::BoundingBox#absolute_bottom_right

#!/usr/bin/env ruby require "prawn" pdf = Prawn::Document.new p pdf.bounds.absolute_bottom_right で、 [576.0, 36.0]

Commons Lang、StandardToStringStyle#setUseIdentityHashCode

import org.apache.commons.lang.builder.StandardToStringStyle; public class C2009081300 { public static void main(String[] args) { StandardToStringStyle x = new StandardToStringStyle(); System.out.println(x.isUseIdentityHashCode()); x.setUs…

Manual:Operators:Caveats and Limitations

ほぼ、まんま >>> from lepl import * >>> name = ('Mr' | 'Ms') // Word() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported operand type(s) for |: 'str' and 'str' >>> name = (Literal('Mr') | 'Ms') // Word() >>> pr</module></stdin>…