jpmobile 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. data/CHANGELOG +4 -0
  2. data/README +8 -5
  3. data/Rakefile +6 -7
  4. data/lib/jpmobile.rb +12 -2
  5. data/lib/jpmobile/email.rb +19 -0
  6. data/lib/jpmobile/filter.rb +1 -15
  7. data/lib/jpmobile/helpers.rb +76 -34
  8. data/lib/jpmobile/hook_action_controller.rb +1 -0
  9. data/lib/jpmobile/hook_action_view.rb +79 -28
  10. data/lib/jpmobile/mobile/abstract_mobile.rb +13 -1
  11. data/lib/jpmobile/mobile/au.rb +2 -0
  12. data/lib/jpmobile/mobile/docomo.rb +3 -1
  13. data/lib/jpmobile/mobile/emobile.rb +2 -0
  14. data/lib/jpmobile/mobile/softbank.rb +7 -1
  15. data/lib/jpmobile/mobile/willcom.rb +4 -0
  16. data/lib/jpmobile/mobile/z_display_info_docomo.rb +85 -2
  17. data/lib/jpmobile/mobile/z_ip_addresses_au.rb +40 -25
  18. data/lib/jpmobile/mobile/z_ip_addresses_docomo.rb +3 -1
  19. data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +97 -76
  20. data/lib/jpmobile/position.rb +8 -2
  21. data/lib/jpmobile/request_with_mobile.rb +1 -1
  22. data/lib/jpmobile/util.rb +21 -0
  23. data/lib/jpmobile/version.rb +1 -1
  24. data/test/au_test.rb +1 -1
  25. data/tools/update_display_info_docomo.rb +1 -0
  26. data/tools/update_ip_addresses_willcom.rb +2 -1
  27. metadata +36 -82
  28. data/doc/classes/ActionController.html +0 -120
  29. data/doc/classes/ActionController/AbstractRequest.html +0 -118
  30. data/doc/classes/ActionController/CgiRequest.html +0 -160
  31. data/doc/classes/ActionView.html +0 -101
  32. data/doc/classes/DatumConv.html +0 -324
  33. data/doc/classes/Jpmobile/Display.html +0 -333
  34. data/doc/classes/Jpmobile/Emoticon.html +0 -467
  35. data/doc/classes/Jpmobile/Filter.html +0 -120
  36. data/doc/classes/Jpmobile/Filter/ApplyOnlyForMobile.html +0 -172
  37. data/doc/classes/Jpmobile/Filter/Base.html +0 -269
  38. data/doc/classes/Jpmobile/Filter/Emoticon.html +0 -118
  39. data/doc/classes/Jpmobile/Filter/Emoticon/Inner.html +0 -184
  40. data/doc/classes/Jpmobile/Filter/Emoticon/Outer.html +0 -207
  41. data/doc/classes/Jpmobile/Filter/FilterTable.html +0 -178
  42. data/doc/classes/Jpmobile/Filter/HankakuKana.html +0 -126
  43. data/doc/classes/Jpmobile/Filter/Sjis.html +0 -271
  44. data/doc/classes/Jpmobile/Helpers.html +0 -588
  45. data/doc/classes/Jpmobile/Mobile.html +0 -150
  46. data/doc/classes/Jpmobile/Mobile/AbstractMobile.html +0 -389
  47. data/doc/classes/Jpmobile/Mobile/Au.html +0 -420
  48. data/doc/classes/Jpmobile/Mobile/Ddipocket.html +0 -138
  49. data/doc/classes/Jpmobile/Mobile/Docomo.html +0 -411
  50. data/doc/classes/Jpmobile/Mobile/Emobile.html +0 -183
  51. data/doc/classes/Jpmobile/Mobile/Jphone.html +0 -212
  52. data/doc/classes/Jpmobile/Mobile/Softbank.html +0 -344
  53. data/doc/classes/Jpmobile/Mobile/Vodafone.html +0 -176
  54. data/doc/classes/Jpmobile/Mobile/Willcom.html +0 -211
  55. data/doc/classes/Jpmobile/Position.html +0 -384
  56. data/doc/classes/Jpmobile/RequestWithMobile.html +0 -263
  57. data/doc/created.rid +0 -1
  58. data/doc/files/CHANGELOG.html +0 -110
  59. data/doc/files/README.html +0 -455
  60. data/doc/files/lib/jpmobile/datum_conv_rb.html +0 -110
  61. data/doc/files/lib/jpmobile/emoticon/au_rb.html +0 -124
  62. data/doc/files/lib/jpmobile/emoticon/conversion_table_rb.html +0 -124
  63. data/doc/files/lib/jpmobile/emoticon/docomo_rb.html +0 -119
  64. data/doc/files/lib/jpmobile/emoticon/softbank_rb.html +0 -119
  65. data/doc/files/lib/jpmobile/emoticon/z_combine_rb.html +0 -101
  66. data/doc/files/lib/jpmobile/emoticon_rb.html +0 -101
  67. data/doc/files/lib/jpmobile/filter_rb.html +0 -115
  68. data/doc/files/lib/jpmobile/helpers_rb.html +0 -105
  69. data/doc/files/lib/jpmobile/hook_abstract_request_rb.html +0 -108
  70. data/doc/files/lib/jpmobile/hook_action_controller_rb.html +0 -101
  71. data/doc/files/lib/jpmobile/hook_action_view_rb.html +0 -110
  72. data/doc/files/lib/jpmobile/mobile/abstract_mobile_rb.html +0 -108
  73. data/doc/files/lib/jpmobile/mobile/au_rb.html +0 -112
  74. data/doc/files/lib/jpmobile/mobile/display_rb.html +0 -111
  75. data/doc/files/lib/jpmobile/mobile/docomo_rb.html +0 -105
  76. data/doc/files/lib/jpmobile/mobile/emobile_rb.html +0 -105
  77. data/doc/files/lib/jpmobile/mobile/softbank_rb.html +0 -115
  78. data/doc/files/lib/jpmobile/mobile/willcom_rb.html +0 -108
  79. data/doc/files/lib/jpmobile/mobile/z_display_info_docomo_rb.html +0 -114
  80. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_au_rb.html +0 -114
  81. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_docomo_rb.html +0 -124
  82. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_emobile_rb.html +0 -111
  83. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_softbank_rb.html +0 -124
  84. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_willcom_rb.html +0 -114
  85. data/doc/files/lib/jpmobile/position_rb.html +0 -105
  86. data/doc/files/lib/jpmobile/request_with_mobile_rb.html +0 -111
  87. data/doc/files/lib/jpmobile/trans_sid_rb.html +0 -118
  88. data/doc/files/lib/jpmobile/version_rb.html +0 -101
  89. data/doc/files/lib/jpmobile_rb.html +0 -101
  90. data/doc/fr_class_index.html +0 -55
  91. data/doc/fr_file_index.html +0 -58
  92. data/doc/fr_method_index.html +0 -134
  93. data/doc/index.html +0 -24
  94. data/doc/rdoc-style.css +0 -208
@@ -1,178 +0,0 @@
1
- <?xml version="1.0" encoding=" UTF-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Jpmobile::Filter::FilterTable</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Jpmobile::Filter::FilterTable</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/jpmobile/filter_rb.html">
59
- lib/jpmobile/filter.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="Base.html">
69
- Base
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- テーブルに基づくフィルタ
86
- </p>
87
-
88
- </div>
89
-
90
-
91
- </div>
92
-
93
- <div id="method-list">
94
- <h3 class="section-bar">Methods</h3>
95
-
96
- <div class="name-list">
97
- <a href="#M000074">to_external</a>&nbsp;&nbsp;
98
- <a href="#M000073">to_internal</a>&nbsp;&nbsp;
99
- </div>
100
- </div>
101
-
102
- </div>
103
-
104
-
105
- <!-- if includes -->
106
-
107
- <div id="section">
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
- <!-- if method_list -->
117
- <div id="methods">
118
- <h3 class="section-bar">Public Instance methods</h3>
119
-
120
- <div id="method-M000074" class="method-detail">
121
- <a name="M000074"></a>
122
-
123
- <div class="method-heading">
124
- <a href="#M000074" class="method-signature">
125
- <span class="method-name">to_external</span><span class="method-args">(str, controller)</span>
126
- </a>
127
- </div>
128
-
129
- <div class="method-description">
130
- <p><a class="source-toggle" href="#"
131
- onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
132
- <div class="method-source-code" id="M000074-source">
133
- <pre>
134
- <span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 118</span>
135
- 118: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_external</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">controller</span>)
136
- 119: <span class="ruby-identifier">filter</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">internal</span>, <span class="ruby-identifier">external</span>)
137
- 120: <span class="ruby-keyword kw">end</span>
138
- </pre>
139
- </div>
140
- </div>
141
- </div>
142
-
143
- <div id="method-M000073" class="method-detail">
144
- <a name="M000073"></a>
145
-
146
- <div class="method-heading">
147
- <a href="#M000073" class="method-signature">
148
- <span class="method-name">to_internal</span><span class="method-args">(str, controller)</span>
149
- </a>
150
- </div>
151
-
152
- <div class="method-description">
153
- <p><a class="source-toggle" href="#"
154
- onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
155
- <div class="method-source-code" id="M000073-source">
156
- <pre>
157
- <span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 115</span>
158
- 115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_internal</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">controller</span>)
159
- 116: <span class="ruby-identifier">filter</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">external</span>, <span class="ruby-identifier">internal</span>)
160
- 117: <span class="ruby-keyword kw">end</span>
161
- </pre>
162
- </div>
163
- </div>
164
- </div>
165
-
166
-
167
- </div>
168
-
169
-
170
- </div>
171
-
172
-
173
- <div id="validator-badges">
174
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
175
- </div>
176
-
177
- </body>
178
- </html>
@@ -1,126 +0,0 @@
1
- <?xml version="1.0" encoding=" UTF-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Jpmobile::Filter::HankakuKana</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Jpmobile::Filter::HankakuKana</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/jpmobile/filter_rb.html">
59
- lib/jpmobile/filter.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="FilterTable.html">
69
- FilterTable
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- 半角カナと全角カナのフィルタ
86
- </p>
87
-
88
- </div>
89
-
90
-
91
- </div>
92
-
93
-
94
- </div>
95
-
96
-
97
- <!-- if includes -->
98
- <div id="includes">
99
- <h3 class="section-bar">Included Modules</h3>
100
-
101
- <div id="includes-list">
102
- <span class="include-name"><a href="ApplyOnlyForMobile.html">ApplyOnlyForMobile</a></span>
103
- </div>
104
- </div>
105
-
106
- <div id="section">
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
- <!-- if method_list -->
116
-
117
-
118
- </div>
119
-
120
-
121
- <div id="validator-badges">
122
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
123
- </div>
124
-
125
- </body>
126
- </html>
@@ -1,271 +0,0 @@
1
- <?xml version="1.0" encoding=" UTF-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Jpmobile::Filter::Sjis</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Jpmobile::Filter::Sjis</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/jpmobile/filter_rb.html">
59
- lib/jpmobile/filter.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="Base.html">
69
- Base
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- Shift_JISとUnicodeのフィルタ(NKFを使用)
86
- </p>
87
-
88
- </div>
89
-
90
-
91
- </div>
92
-
93
- <div id="method-list">
94
- <h3 class="section-bar">Methods</h3>
95
-
96
- <div class="name-list">
97
- <a href="#M000077">after_after</a>&nbsp;&nbsp;
98
- <a href="#M000078">apply_incoming?</a>&nbsp;&nbsp;
99
- <a href="#M000079">apply_outgoing?</a>&nbsp;&nbsp;
100
- <a href="#M000075">to_external</a>&nbsp;&nbsp;
101
- <a href="#M000076">to_internal</a>&nbsp;&nbsp;
102
- </div>
103
- </div>
104
-
105
- </div>
106
-
107
-
108
- <!-- if includes -->
109
-
110
- <div id="section">
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
- <!-- if method_list -->
120
- <div id="methods">
121
- <h3 class="section-bar">Public Instance methods</h3>
122
-
123
- <div id="method-M000077" class="method-detail">
124
- <a name="M000077"></a>
125
-
126
- <div class="method-heading">
127
- <a href="#M000077" class="method-signature">
128
- <span class="method-name">after_after</span><span class="method-args">(controller)</span>
129
- </a>
130
- </div>
131
-
132
- <div class="method-description">
133
- <p>
134
- afterfilterを実行した後に実行する。
135
- </p>
136
- <p><a class="source-toggle" href="#"
137
- onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
138
- <div class="method-source-code" id="M000077-source">
139
- <pre>
140
- <span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 92</span>
141
- 92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after_after</span>(<span class="ruby-identifier">controller</span>)
142
- 93: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>.<span class="ruby-identifier">blank?</span>
143
- 94: <span class="ruby-comment cmt"># 500.htmlなどをUTF-8で書いたとき、docomoで文字化けするのを防ぐため</span>
144
- 95: <span class="ruby-comment cmt"># response_bodyが空の場合はShift_JISを指定しない</span>
145
- 96: <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">response</span>.<span class="ruby-identifier">charset</span> = <span class="ruby-value str">&quot;Shift_JIS&quot;</span>
146
- 97: <span class="ruby-keyword kw">end</span>
147
- 98: <span class="ruby-keyword kw">end</span>
148
- </pre>
149
- </div>
150
- </div>
151
- </div>
152
-
153
- <div id="method-M000078" class="method-detail">
154
- <a name="M000078"></a>
155
-
156
- <div class="method-heading">
157
- <a href="#M000078" class="method-signature">
158
- <span class="method-name">apply_incoming?</span><span class="method-args">(controller)</span>
159
- </a>
160
- </div>
161
-
162
- <div class="method-description">
163
- <p>
164
- <a
165
- href="Sjis.html#M000076">to_internal</a>を適用するべきかどうかを返す。
166
- </p>
167
- <p><a class="source-toggle" href="#"
168
- onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
169
- <div class="method-source-code" id="M000078-source">
170
- <pre>
171
- <span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 100</span>
172
- 100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">apply_incoming?</span>(<span class="ruby-identifier">controller</span>)
173
- 101: <span class="ruby-comment cmt"># Vodafone 3G/Softbank(Shift-JISにすると絵文字で不具合が生じる)以外の</span>
174
- 102: <span class="ruby-comment cmt"># 携帯電話の場合に適用する。</span>
175
- 103: <span class="ruby-identifier">mobile</span> = <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">request</span>.<span class="ruby-identifier">mobile</span>
176
- 104: <span class="ruby-identifier">mobile</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Mobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Vodafone</span>)<span class="ruby-operator">||</span><span class="ruby-identifier">mobile</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Mobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Softbank</span>))
177
- 105: <span class="ruby-keyword kw">end</span>
178
- </pre>
179
- </div>
180
- </div>
181
- </div>
182
-
183
- <div id="method-M000079" class="method-detail">
184
- <a name="M000079"></a>
185
-
186
- <div class="method-heading">
187
- <a href="#M000079" class="method-signature">
188
- <span class="method-name">apply_outgoing?</span><span class="method-args">(controller)</span>
189
- </a>
190
- </div>
191
-
192
- <div class="method-description">
193
- <p><a class="source-toggle" href="#"
194
- onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
195
- <div class="method-source-code" id="M000079-source">
196
- <pre>
197
- <span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 106</span>
198
- 106: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">apply_outgoing?</span>(<span class="ruby-identifier">controller</span>)
199
- 107: [<span class="ruby-keyword kw">nil</span>, <span class="ruby-value str">&quot;text/html&quot;</span>, <span class="ruby-value str">&quot;application/xhtml+xml&quot;</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">controller</span>.<span class="ruby-identifier">response</span>.<span class="ruby-identifier">content_type</span>) <span class="ruby-operator">&amp;&amp;</span>
200
- 108: <span class="ruby-identifier">apply_incoming?</span>(<span class="ruby-identifier">controller</span>)
201
- 109: <span class="ruby-keyword kw">end</span>
202
- </pre>
203
- </div>
204
- </div>
205
- </div>
206
-
207
- <div id="method-M000075" class="method-detail">
208
- <a name="M000075"></a>
209
-
210
- <div class="method-heading">
211
- <a href="#M000075" class="method-signature">
212
- <span class="method-name">to_external</span><span class="method-args">(str, controller)</span>
213
- </a>
214
- </div>
215
-
216
- <div class="method-description">
217
- <p>
218
- UTF-8からShift_JISに変換する。
219
- </p>
220
- <p><a class="source-toggle" href="#"
221
- onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
222
- <div class="method-source-code" id="M000075-source">
223
- <pre>
224
- <span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 84</span>
225
- 84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_external</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">controller</span>)
226
- 85: <span class="ruby-constant">NKF</span>.<span class="ruby-identifier">nkf</span>(<span class="ruby-value str">'-m0 -x -Ws'</span>, <span class="ruby-identifier">str</span>)
227
- 86: <span class="ruby-keyword kw">end</span>
228
- </pre>
229
- </div>
230
- </div>
231
- </div>
232
-
233
- <div id="method-M000076" class="method-detail">
234
- <a name="M000076"></a>
235
-
236
- <div class="method-heading">
237
- <a href="#M000076" class="method-signature">
238
- <span class="method-name">to_internal</span><span class="method-args">(str, controller)</span>
239
- </a>
240
- </div>
241
-
242
- <div class="method-description">
243
- <p>
244
- Shift_JISからUTF-8に変換する。
245
- </p>
246
- <p><a class="source-toggle" href="#"
247
- onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
248
- <div class="method-source-code" id="M000076-source">
249
- <pre>
250
- <span class="ruby-comment cmt"># File lib/jpmobile/filter.rb, line 88</span>
251
- 88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_internal</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">controller</span>)
252
- 89: <span class="ruby-constant">NKF</span>.<span class="ruby-identifier">nkf</span>(<span class="ruby-value str">'-m0 -x -Sw'</span>, <span class="ruby-identifier">str</span>)
253
- 90: <span class="ruby-keyword kw">end</span>
254
- </pre>
255
- </div>
256
- </div>
257
- </div>
258
-
259
-
260
- </div>
261
-
262
-
263
- </div>
264
-
265
-
266
- <div id="validator-badges">
267
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
268
- </div>
269
-
270
- </body>
271
- </html>