質問編集履歴

1

追記

2017/05/03 06:37

投稿

kento2543
kento2543

スコア163

test CHANGED
File without changes
test CHANGED
@@ -119,3 +119,41 @@
119
119
 
120
120
 
121
121
  `@pdf = PDFKit.new('<html><head></head><body></body></html>', header_left: '<p>hoge</p>')`
122
+
123
+
124
+
125
+
126
+
127
+ # デバッグ時のインスタンス変数の中身
128
+
129
+
130
+
131
+ ```
132
+
133
+ > @pdf
134
+
135
+ => #<PDFKit:0x007ffad89d2c60
136
+
137
+ @host_is_windows=false,
138
+
139
+ @options=
140
+
141
+ {"--encoding"=>"UTF-8",
142
+
143
+ "--page-size"=>"A4",
144
+
145
+ "--margin-top"=>"0.25in",
146
+
147
+ "--margin-right"=>"1in",
148
+
149
+ "--margin-bottom"=>"0.25in",
150
+
151
+ "--margin-left"=>"1in",
152
+
153
+ "--header-left"=>"<p>hoge</p>"},
154
+
155
+ @source=#<PDFKit::Source:0x007ffad89d2c38 @is_url=nil, @source="<html><head></head>">,
156
+
157
+ @stylesheets=["path/to/pdf.css"]>
158
+
159
+ ```