質問するログイン新規登録

質問編集履歴

1

追記

2017/05/03 06:37

投稿

kento2543
kento2543

スコア163

title CHANGED
File without changes
body CHANGED
@@ -58,4 +58,23 @@
58
58
 
59
59
  Slimがダメなのかと思い次の通りやりましたが、ダメでした。
60
60
 
61
- `@pdf = PDFKit.new('<html><head></head><body></body></html>', header_left: '<p>hoge</p>')`
61
+ `@pdf = PDFKit.new('<html><head></head><body></body></html>', header_left: '<p>hoge</p>')`
62
+
63
+
64
+ # デバッグ時のインスタンス変数の中身
65
+
66
+ ```
67
+ > @pdf
68
+ => #<PDFKit:0x007ffad89d2c60
69
+ @host_is_windows=false,
70
+ @options=
71
+ {"--encoding"=>"UTF-8",
72
+ "--page-size"=>"A4",
73
+ "--margin-top"=>"0.25in",
74
+ "--margin-right"=>"1in",
75
+ "--margin-bottom"=>"0.25in",
76
+ "--margin-left"=>"1in",
77
+ "--header-left"=>"<p>hoge</p>"},
78
+ @source=#<PDFKit::Source:0x007ffad89d2c38 @is_url=nil, @source="<html><head></head>">,
79
+ @stylesheets=["path/to/pdf.css"]>
80
+ ```