jpmobile 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +41 -4
- data/Rakefile +11 -9
- data/lib/jpmobile.rb +0 -6
- data/lib/jpmobile/emoticon.rb +105 -0
- data/lib/jpmobile/emoticon/au.rb +644 -0
- data/lib/jpmobile/emoticon/conversion_table.rb +3908 -0
- data/lib/jpmobile/emoticon/docomo.rb +255 -0
- data/lib/jpmobile/emoticon/softbank.rb +477 -0
- data/lib/jpmobile/emoticon/z_combine.rb +20 -0
- data/lib/jpmobile/filter.rb +73 -51
- data/lib/jpmobile/helpers.rb +4 -4
- data/lib/jpmobile/hook_abstract_request.rb +6 -2
- data/lib/jpmobile/hook_action_controller.rb +10 -0
- data/lib/jpmobile/hook_action_view.rb +7 -0
- data/lib/jpmobile/mobile/abstract_mobile.rb +5 -1
- data/lib/jpmobile/mobile/au.rb +1 -1
- data/lib/jpmobile/mobile/docomo.rb +2 -5
- data/lib/jpmobile/mobile/softbank.rb +9 -1
- data/lib/jpmobile/mobile/z_display_info_docomo.rb +32 -10
- data/lib/jpmobile/mobile/z_ip_addresses.rb +6 -6
- data/lib/jpmobile/mobile/z_ip_addresses_au.rb +2 -1
- data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +6 -1
- data/lib/jpmobile/trans_sid.rb +5 -2
- data/lib/jpmobile/version.rb +1 -1
- data/test/au_test.rb +1 -0
- data/test/docomo_test.rb +8 -0
- data/test/emoticon_functional_test.rb +166 -0
- data/test/emoticon_test.rb +58 -0
- data/test/filter_functional_test.rb +146 -0
- data/test/filter_test.rb +8 -8
- data/test/softbank_test.rb +18 -0
- data/tools/generate_au_emoticon_table.rb +25 -0
- data/tools/{update_emoji_docomo.rb → generate_docomo_emoticon_table.rb} +4 -8
- data/tools/generate_emoticon_conversion_table.rb +107 -0
- data/tools/generate_softbank_emoticon_table.rb +32 -0
- data/tools/update_display_info_docomo.rb +3 -5
- metadata +18 -75
- data/NOTES +0 -21
- data/TODO +0 -16
- data/doc/classes/ActionController.html +0 -107
- data/doc/classes/ActionController/AbstractRequest.html +0 -216
- data/doc/classes/ActionView.html +0 -101
- data/doc/classes/DatumConv.html +0 -324
- data/doc/classes/Jpmobile/Display.html +0 -333
- data/doc/classes/Jpmobile/Filter.html +0 -119
- data/doc/classes/Jpmobile/Filter/Base.html +0 -269
- data/doc/classes/Jpmobile/Filter/Emoji.html +0 -130
- data/doc/classes/Jpmobile/Filter/Emoji/Inner.html +0 -183
- data/doc/classes/Jpmobile/Filter/Emoji/Outer.html +0 -187
- data/doc/classes/Jpmobile/Filter/FilterTable.html +0 -178
- data/doc/classes/Jpmobile/Filter/HankakuKana.html +0 -170
- data/doc/classes/Jpmobile/Filter/Sjis.html +0 -244
- data/doc/classes/Jpmobile/Helpers.html +0 -558
- data/doc/classes/Jpmobile/Mobile.html +0 -141
- data/doc/classes/Jpmobile/Mobile/AbstractMobile.html +0 -324
- data/doc/classes/Jpmobile/Mobile/Au.html +0 -415
- data/doc/classes/Jpmobile/Mobile/Ddipocket.html +0 -138
- data/doc/classes/Jpmobile/Mobile/Docomo.html +0 -366
- data/doc/classes/Jpmobile/Mobile/Jphone.html +0 -212
- data/doc/classes/Jpmobile/Mobile/Softbank.html +0 -300
- data/doc/classes/Jpmobile/Mobile/Vodafone.html +0 -176
- data/doc/classes/Jpmobile/Mobile/Willcom.html +0 -210
- data/doc/classes/Jpmobile/Position.html +0 -384
- data/doc/created.rid +0 -1
- data/doc/files/CHANGELOG.html +0 -110
- data/doc/files/NOTES.html +0 -163
- data/doc/files/README.html +0 -345
- data/doc/files/TODO.html +0 -138
- data/doc/files/lib/jpmobile/datum_conv_rb.html +0 -110
- data/doc/files/lib/jpmobile/filter_rb.html +0 -115
- data/doc/files/lib/jpmobile/helpers_rb.html +0 -105
- data/doc/files/lib/jpmobile/hook_abstract_request_rb.html +0 -109
- data/doc/files/lib/jpmobile/hook_action_view_rb.html +0 -119
- data/doc/files/lib/jpmobile/mobile/abstract_mobile_rb.html +0 -108
- data/doc/files/lib/jpmobile/mobile/au_rb.html +0 -112
- data/doc/files/lib/jpmobile/mobile/display_rb.html +0 -111
- data/doc/files/lib/jpmobile/mobile/docomo_rb.html +0 -105
- data/doc/files/lib/jpmobile/mobile/softbank_rb.html +0 -115
- data/doc/files/lib/jpmobile/mobile/willcom_rb.html +0 -108
- data/doc/files/lib/jpmobile/mobile/z_display_info_docomo_rb.html +0 -114
- data/doc/files/lib/jpmobile/mobile/z_emoji_docomo_rb.html +0 -119
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_au_rb.html +0 -114
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_rb.html +0 -117
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_willcom_rb.html +0 -114
- data/doc/files/lib/jpmobile/position_rb.html +0 -105
- data/doc/files/lib/jpmobile/trans_sid_rb.html +0 -114
- data/doc/files/lib/jpmobile/version_rb.html +0 -101
- data/doc/files/lib/jpmobile_rb.html +0 -101
- data/doc/fr_class_index.html +0 -50
- data/doc/fr_file_index.html +0 -50
- data/doc/fr_method_index.html +0 -113
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
- data/lib/jpmobile/mobile/z_emoji_docomo.rb +0 -508
- data/test/firefox_test.rb +0 -8
- data/test/transitsid_test.rb +0 -86
@@ -1,141 +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>Module: Jpmobile::Mobile</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>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Jpmobile::Mobile</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/jpmobile/mobile/abstract_mobile_rb.html">
|
59
|
-
lib/jpmobile/mobile/abstract_mobile.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
<a href="../../files/lib/jpmobile/mobile/au_rb.html">
|
63
|
-
lib/jpmobile/mobile/au.rb
|
64
|
-
</a>
|
65
|
-
<br />
|
66
|
-
<a href="../../files/lib/jpmobile/mobile/docomo_rb.html">
|
67
|
-
lib/jpmobile/mobile/docomo.rb
|
68
|
-
</a>
|
69
|
-
<br />
|
70
|
-
<a href="../../files/lib/jpmobile/mobile/softbank_rb.html">
|
71
|
-
lib/jpmobile/mobile/softbank.rb
|
72
|
-
</a>
|
73
|
-
<br />
|
74
|
-
<a href="../../files/lib/jpmobile/mobile/willcom_rb.html">
|
75
|
-
lib/jpmobile/mobile/willcom.rb
|
76
|
-
</a>
|
77
|
-
<br />
|
78
|
-
</td>
|
79
|
-
</tr>
|
80
|
-
|
81
|
-
</table>
|
82
|
-
</div>
|
83
|
-
<!-- banner header -->
|
84
|
-
|
85
|
-
<div id="bodyContent">
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
<div id="contextContent">
|
90
|
-
|
91
|
-
<div id="description">
|
92
|
-
<h1><a href="Mobile/Willcom.html">Willcom</a>携帯電話</h1>
|
93
|
-
<p>
|
94
|
-
DDI-POCKETを含む。
|
95
|
-
</p>
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
|
100
|
-
</div>
|
101
|
-
|
102
|
-
|
103
|
-
</div>
|
104
|
-
|
105
|
-
|
106
|
-
<!-- if includes -->
|
107
|
-
|
108
|
-
<div id="section">
|
109
|
-
|
110
|
-
<div id="class-list">
|
111
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
112
|
-
|
113
|
-
Class <a href="Mobile/AbstractMobile.html" class="link">Jpmobile::Mobile::AbstractMobile</a><br />
|
114
|
-
Class <a href="Mobile/Au.html" class="link">Jpmobile::Mobile::Au</a><br />
|
115
|
-
Class <a href="Mobile/Ddipocket.html" class="link">Jpmobile::Mobile::Ddipocket</a><br />
|
116
|
-
Class <a href="Mobile/Docomo.html" class="link">Jpmobile::Mobile::Docomo</a><br />
|
117
|
-
Class <a href="Mobile/Jphone.html" class="link">Jpmobile::Mobile::Jphone</a><br />
|
118
|
-
Class <a href="Mobile/Softbank.html" class="link">Jpmobile::Mobile::Softbank</a><br />
|
119
|
-
Class <a href="Mobile/Vodafone.html" class="link">Jpmobile::Mobile::Vodafone</a><br />
|
120
|
-
Class <a href="Mobile/Willcom.html" class="link">Jpmobile::Mobile::Willcom</a><br />
|
121
|
-
|
122
|
-
</div>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
<!-- if method_list -->
|
131
|
-
|
132
|
-
|
133
|
-
</div>
|
134
|
-
|
135
|
-
|
136
|
-
<div id="validator-badges">
|
137
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
138
|
-
</div>
|
139
|
-
|
140
|
-
</body>
|
141
|
-
</html>
|
@@ -1,324 +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::Mobile::AbstractMobile</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::Mobile::AbstractMobile</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/jpmobile/mobile/abstract_mobile_rb.html">
|
59
|
-
lib/jpmobile/mobile/abstract_mobile.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
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
携帯電話の抽象クラス。
|
84
|
-
</p>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="method-list">
|
92
|
-
<h3 class="section-bar">Methods</h3>
|
93
|
-
|
94
|
-
<div class="name-list">
|
95
|
-
<a href="#M000025">display</a>
|
96
|
-
<a href="#M000023">ident</a>
|
97
|
-
<a href="#M000021">new</a>
|
98
|
-
<a href="#M000022">position</a>
|
99
|
-
<a href="#M000026">supports_cookie?</a>
|
100
|
-
<a href="#M000024">valid_ip?</a>
|
101
|
-
</div>
|
102
|
-
</div>
|
103
|
-
|
104
|
-
</div>
|
105
|
-
|
106
|
-
|
107
|
-
<!-- if includes -->
|
108
|
-
|
109
|
-
<div id="section">
|
110
|
-
|
111
|
-
|
112
|
-
<div id="constants-list">
|
113
|
-
<h3 class="section-bar">Constants</h3>
|
114
|
-
|
115
|
-
<div class="name-list">
|
116
|
-
<table summary="Constants">
|
117
|
-
<tr class="top-aligned-row context-row">
|
118
|
-
<td class="context-item-name">USER_AGENT_REGEXP</td>
|
119
|
-
<td>=</td>
|
120
|
-
<td class="context-item-value">nil</td>
|
121
|
-
<td width="3em"> </td>
|
122
|
-
<td class="context-item-desc">
|
123
|
-
対応するuser-agentの正規表現
|
124
|
-
|
125
|
-
</td>
|
126
|
-
</tr>
|
127
|
-
<tr class="top-aligned-row context-row">
|
128
|
-
<td class="context-item-name">IP_ADDRESSES</td>
|
129
|
-
<td>=</td>
|
130
|
-
<td class="context-item-value">nil</td>
|
131
|
-
<td width="3em"> </td>
|
132
|
-
<td class="context-item-desc">
|
133
|
-
IPアドレスデータ
|
134
|
-
|
135
|
-
</td>
|
136
|
-
</tr>
|
137
|
-
</table>
|
138
|
-
</div>
|
139
|
-
</div>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
<!-- if method_list -->
|
147
|
-
<div id="methods">
|
148
|
-
<h3 class="section-bar">Public Class methods</h3>
|
149
|
-
|
150
|
-
<div id="method-M000021" class="method-detail">
|
151
|
-
<a name="M000021"></a>
|
152
|
-
|
153
|
-
<div class="method-heading">
|
154
|
-
<a href="#M000021" class="method-signature">
|
155
|
-
<span class="method-name">new</span><span class="method-args">(request)</span>
|
156
|
-
</a>
|
157
|
-
</div>
|
158
|
-
|
159
|
-
<div class="method-description">
|
160
|
-
<p><a class="source-toggle" href="#"
|
161
|
-
onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
|
162
|
-
<div class="method-source-code" id="M000021-source">
|
163
|
-
<pre>
|
164
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 6</span>
|
165
|
-
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">request</span>)
|
166
|
-
7: <span class="ruby-ivar">@request</span> = <span class="ruby-identifier">request</span>
|
167
|
-
8: <span class="ruby-keyword kw">end</span>
|
168
|
-
</pre>
|
169
|
-
</div>
|
170
|
-
</div>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
174
|
-
|
175
|
-
<div id="method-M000025" class="method-detail">
|
176
|
-
<a name="M000025"></a>
|
177
|
-
|
178
|
-
<div class="method-heading">
|
179
|
-
<a href="#M000025" class="method-signature">
|
180
|
-
<span class="method-name">display</span><span class="method-args">()</span>
|
181
|
-
</a>
|
182
|
-
</div>
|
183
|
-
|
184
|
-
<div class="method-description">
|
185
|
-
<p>
|
186
|
-
画面情報を <tt><a href="../Display.html">Display</a></tt>
|
187
|
-
クラスのインスタンスで返す。
|
188
|
-
</p>
|
189
|
-
<p><a class="source-toggle" href="#"
|
190
|
-
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
191
|
-
<div class="method-source-code" id="M000025-source">
|
192
|
-
<pre>
|
193
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 36</span>
|
194
|
-
36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">display</span>
|
195
|
-
37: <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Display</span>.<span class="ruby-identifier">new</span>
|
196
|
-
38: <span class="ruby-keyword kw">end</span>
|
197
|
-
</pre>
|
198
|
-
</div>
|
199
|
-
</div>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
<div id="method-M000023" class="method-detail">
|
203
|
-
<a name="M000023"></a>
|
204
|
-
|
205
|
-
<div class="method-heading">
|
206
|
-
<a href="#M000023" class="method-signature">
|
207
|
-
<span class="method-name">ident</span><span class="method-args">()</span>
|
208
|
-
</a>
|
209
|
-
</div>
|
210
|
-
|
211
|
-
<div class="method-description">
|
212
|
-
<p>
|
213
|
-
契約者又は端末を識別する文字列があれば返す。
|
214
|
-
</p>
|
215
|
-
<p><a class="source-toggle" href="#"
|
216
|
-
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
217
|
-
<div class="method-source-code" id="M000023-source">
|
218
|
-
<pre>
|
219
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 17</span>
|
220
|
-
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ident</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>; <span class="ruby-keyword kw">end</span>
|
221
|
-
</pre>
|
222
|
-
</div>
|
223
|
-
</div>
|
224
|
-
</div>
|
225
|
-
|
226
|
-
<div id="method-M000022" class="method-detail">
|
227
|
-
<a name="M000022"></a>
|
228
|
-
|
229
|
-
<div class="method-heading">
|
230
|
-
<a href="#M000022" class="method-signature">
|
231
|
-
<span class="method-name">position</span><span class="method-args">()</span>
|
232
|
-
</a>
|
233
|
-
</div>
|
234
|
-
|
235
|
-
<div class="method-description">
|
236
|
-
<p>
|
237
|
-
緯度経度があれば <a href="../Position.html">Position</a>
|
238
|
-
のインスタンスを返す。
|
239
|
-
</p>
|
240
|
-
<p><a class="source-toggle" href="#"
|
241
|
-
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
242
|
-
<div class="method-source-code" id="M000022-source">
|
243
|
-
<pre>
|
244
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 14</span>
|
245
|
-
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>; <span class="ruby-keyword kw">end</span>
|
246
|
-
</pre>
|
247
|
-
</div>
|
248
|
-
</div>
|
249
|
-
</div>
|
250
|
-
|
251
|
-
<div id="method-M000026" class="method-detail">
|
252
|
-
<a name="M000026"></a>
|
253
|
-
|
254
|
-
<div class="method-heading">
|
255
|
-
<a href="#M000026" class="method-signature">
|
256
|
-
<span class="method-name">supports_cookie?</span><span class="method-args">()</span>
|
257
|
-
</a>
|
258
|
-
</div>
|
259
|
-
|
260
|
-
<div class="method-description">
|
261
|
-
<p>
|
262
|
-
クッキーをサポートしているか。
|
263
|
-
</p>
|
264
|
-
<p><a class="source-toggle" href="#"
|
265
|
-
onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
|
266
|
-
<div class="method-source-code" id="M000026-source">
|
267
|
-
<pre>
|
268
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 41</span>
|
269
|
-
41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supports_cookie?</span>
|
270
|
-
42: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
271
|
-
43: <span class="ruby-keyword kw">end</span>
|
272
|
-
</pre>
|
273
|
-
</div>
|
274
|
-
</div>
|
275
|
-
</div>
|
276
|
-
|
277
|
-
<div id="method-M000024" class="method-detail">
|
278
|
-
<a name="M000024"></a>
|
279
|
-
|
280
|
-
<div class="method-heading">
|
281
|
-
<a href="#M000024" class="method-signature">
|
282
|
-
<span class="method-name">valid_ip?</span><span class="method-args">()</span>
|
283
|
-
</a>
|
284
|
-
</div>
|
285
|
-
|
286
|
-
<div class="method-description">
|
287
|
-
<p>
|
288
|
-
当該キャリアのIPアドレス帯域からのアクセスであれば
|
289
|
-
<tt>true</tt> を返す。 そうでなければ <tt>false</tt>
|
290
|
-
を返す。 IP空間が定義されていない場合は <tt>nil</tt>
|
291
|
-
を返す。
|
292
|
-
</p>
|
293
|
-
<p><a class="source-toggle" href="#"
|
294
|
-
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
295
|
-
<div class="method-source-code" id="M000024-source">
|
296
|
-
<pre>
|
297
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/abstract_mobile.rb, line 25</span>
|
298
|
-
25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_ip?</span>
|
299
|
-
26: <span class="ruby-identifier">addrs</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span><span class="ruby-operator">::</span><span class="ruby-constant">IP_ADDRESSES</span>
|
300
|
-
27: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">addrs</span>.<span class="ruby-identifier">nil?</span>
|
301
|
-
28: <span class="ruby-identifier">remote</span> = <span class="ruby-constant">IPAddr</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@request</span>.<span class="ruby-identifier">remote_ip</span>)
|
302
|
-
29: <span class="ruby-identifier">addrs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
303
|
-
30: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">IPAddr</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">s</span>.<span class="ruby-identifier">chomp</span>).<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">remote</span>)
|
304
|
-
31: <span class="ruby-keyword kw">end</span>
|
305
|
-
32: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
306
|
-
33: <span class="ruby-keyword kw">end</span>
|
307
|
-
</pre>
|
308
|
-
</div>
|
309
|
-
</div>
|
310
|
-
</div>
|
311
|
-
|
312
|
-
|
313
|
-
</div>
|
314
|
-
|
315
|
-
|
316
|
-
</div>
|
317
|
-
|
318
|
-
|
319
|
-
<div id="validator-badges">
|
320
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
321
|
-
</div>
|
322
|
-
|
323
|
-
</body>
|
324
|
-
</html>
|