jpmobile 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README +8 -5
- data/Rakefile +6 -7
- data/lib/jpmobile.rb +12 -2
- data/lib/jpmobile/email.rb +19 -0
- data/lib/jpmobile/filter.rb +1 -15
- data/lib/jpmobile/helpers.rb +76 -34
- data/lib/jpmobile/hook_action_controller.rb +1 -0
- data/lib/jpmobile/hook_action_view.rb +79 -28
- data/lib/jpmobile/mobile/abstract_mobile.rb +13 -1
- data/lib/jpmobile/mobile/au.rb +2 -0
- data/lib/jpmobile/mobile/docomo.rb +3 -1
- data/lib/jpmobile/mobile/emobile.rb +2 -0
- data/lib/jpmobile/mobile/softbank.rb +7 -1
- data/lib/jpmobile/mobile/willcom.rb +4 -0
- data/lib/jpmobile/mobile/z_display_info_docomo.rb +85 -2
- data/lib/jpmobile/mobile/z_ip_addresses_au.rb +40 -25
- data/lib/jpmobile/mobile/z_ip_addresses_docomo.rb +3 -1
- data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +97 -76
- data/lib/jpmobile/position.rb +8 -2
- data/lib/jpmobile/request_with_mobile.rb +1 -1
- data/lib/jpmobile/util.rb +21 -0
- data/lib/jpmobile/version.rb +1 -1
- data/test/au_test.rb +1 -1
- data/tools/update_display_info_docomo.rb +1 -0
- data/tools/update_ip_addresses_willcom.rb +2 -1
- metadata +36 -82
- data/doc/classes/ActionController.html +0 -120
- data/doc/classes/ActionController/AbstractRequest.html +0 -118
- data/doc/classes/ActionController/CgiRequest.html +0 -160
- 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/Emoticon.html +0 -467
- data/doc/classes/Jpmobile/Filter.html +0 -120
- data/doc/classes/Jpmobile/Filter/ApplyOnlyForMobile.html +0 -172
- data/doc/classes/Jpmobile/Filter/Base.html +0 -269
- data/doc/classes/Jpmobile/Filter/Emoticon.html +0 -118
- data/doc/classes/Jpmobile/Filter/Emoticon/Inner.html +0 -184
- data/doc/classes/Jpmobile/Filter/Emoticon/Outer.html +0 -207
- data/doc/classes/Jpmobile/Filter/FilterTable.html +0 -178
- data/doc/classes/Jpmobile/Filter/HankakuKana.html +0 -126
- data/doc/classes/Jpmobile/Filter/Sjis.html +0 -271
- data/doc/classes/Jpmobile/Helpers.html +0 -588
- data/doc/classes/Jpmobile/Mobile.html +0 -150
- data/doc/classes/Jpmobile/Mobile/AbstractMobile.html +0 -389
- data/doc/classes/Jpmobile/Mobile/Au.html +0 -420
- data/doc/classes/Jpmobile/Mobile/Ddipocket.html +0 -138
- data/doc/classes/Jpmobile/Mobile/Docomo.html +0 -411
- data/doc/classes/Jpmobile/Mobile/Emobile.html +0 -183
- data/doc/classes/Jpmobile/Mobile/Jphone.html +0 -212
- data/doc/classes/Jpmobile/Mobile/Softbank.html +0 -344
- data/doc/classes/Jpmobile/Mobile/Vodafone.html +0 -176
- data/doc/classes/Jpmobile/Mobile/Willcom.html +0 -211
- data/doc/classes/Jpmobile/Position.html +0 -384
- data/doc/classes/Jpmobile/RequestWithMobile.html +0 -263
- data/doc/created.rid +0 -1
- data/doc/files/CHANGELOG.html +0 -110
- data/doc/files/README.html +0 -455
- data/doc/files/lib/jpmobile/datum_conv_rb.html +0 -110
- data/doc/files/lib/jpmobile/emoticon/au_rb.html +0 -124
- data/doc/files/lib/jpmobile/emoticon/conversion_table_rb.html +0 -124
- data/doc/files/lib/jpmobile/emoticon/docomo_rb.html +0 -119
- data/doc/files/lib/jpmobile/emoticon/softbank_rb.html +0 -119
- data/doc/files/lib/jpmobile/emoticon/z_combine_rb.html +0 -101
- data/doc/files/lib/jpmobile/emoticon_rb.html +0 -101
- 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 -108
- data/doc/files/lib/jpmobile/hook_action_controller_rb.html +0 -101
- data/doc/files/lib/jpmobile/hook_action_view_rb.html +0 -110
- 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/emobile_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_ip_addresses_au_rb.html +0 -114
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_docomo_rb.html +0 -124
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_emobile_rb.html +0 -111
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_softbank_rb.html +0 -124
- 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/request_with_mobile_rb.html +0 -111
- data/doc/files/lib/jpmobile/trans_sid_rb.html +0 -118
- 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 -55
- data/doc/fr_file_index.html +0 -58
- data/doc/fr_method_index.html +0 -134
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
@@ -1,176 +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::Vodafone</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::Vodafone</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/jpmobile/mobile/softbank_rb.html">
|
59
|
-
lib/jpmobile/mobile/softbank.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="Softbank.html">
|
69
|
-
Softbank
|
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
|
-
<h2><a href="Vodafone.html">Vodafone</a> 3G携帯電話(J-PHONE, SoftBank含まず)</h2>
|
85
|
-
<p>
|
86
|
-
スーパクラスは<a href="Softbank.html">Softbank</a>。
|
87
|
-
</p>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
|
92
|
-
</div>
|
93
|
-
|
94
|
-
<div id="method-list">
|
95
|
-
<h3 class="section-bar">Methods</h3>
|
96
|
-
|
97
|
-
<div class="name-list">
|
98
|
-
<a href="#M000012">supports_cookie?</a>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
<!-- if includes -->
|
106
|
-
|
107
|
-
<div id="section">
|
108
|
-
|
109
|
-
|
110
|
-
<div id="constants-list">
|
111
|
-
<h3 class="section-bar">Constants</h3>
|
112
|
-
|
113
|
-
<div class="name-list">
|
114
|
-
<table summary="Constants">
|
115
|
-
<tr class="top-aligned-row context-row">
|
116
|
-
<td class="context-item-name">USER_AGENT_REGEXP</td>
|
117
|
-
<td>=</td>
|
118
|
-
<td class="context-item-value">/^(Vodafone|Vemulator)/</td>
|
119
|
-
<td width="3em"> </td>
|
120
|
-
<td class="context-item-desc">
|
121
|
-
対応するUser-Agentの正規表現
|
122
|
-
|
123
|
-
</td>
|
124
|
-
</tr>
|
125
|
-
</table>
|
126
|
-
</div>
|
127
|
-
</div>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<!-- if method_list -->
|
135
|
-
<div id="methods">
|
136
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
137
|
-
|
138
|
-
<div id="method-M000012" class="method-detail">
|
139
|
-
<a name="M000012"></a>
|
140
|
-
|
141
|
-
<div class="method-heading">
|
142
|
-
<a href="#M000012" class="method-signature">
|
143
|
-
<span class="method-name">supports_cookie?</span><span class="method-args">()</span>
|
144
|
-
</a>
|
145
|
-
</div>
|
146
|
-
|
147
|
-
<div class="method-description">
|
148
|
-
<p>
|
149
|
-
cookieに対応しているか?
|
150
|
-
</p>
|
151
|
-
<p><a class="source-toggle" href="#"
|
152
|
-
onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
|
153
|
-
<div class="method-source-code" id="M000012-source">
|
154
|
-
<pre>
|
155
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/softbank.rb, line 76</span>
|
156
|
-
76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supports_cookie?</span>
|
157
|
-
77: <span class="ruby-keyword kw">true</span>
|
158
|
-
78: <span class="ruby-keyword kw">end</span>
|
159
|
-
</pre>
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
</div>
|
163
|
-
|
164
|
-
|
165
|
-
</div>
|
166
|
-
|
167
|
-
|
168
|
-
</div>
|
169
|
-
|
170
|
-
|
171
|
-
<div id="validator-badges">
|
172
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
173
|
-
</div>
|
174
|
-
|
175
|
-
</body>
|
176
|
-
</html>
|
@@ -1,211 +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::Willcom</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::Willcom</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/jpmobile/mobile/willcom_rb.html">
|
59
|
-
lib/jpmobile/mobile/willcom.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="AbstractMobile.html">
|
69
|
-
AbstractMobile
|
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
|
-
<h2><a href="Willcom.html">Willcom</a>携帯電話</h2>
|
85
|
-
<p>
|
86
|
-
<a href="Ddipocket.html">Ddipocket</a>のスーパクラス。
|
87
|
-
</p>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
|
92
|
-
</div>
|
93
|
-
|
94
|
-
<div id="method-list">
|
95
|
-
<h3 class="section-bar">Methods</h3>
|
96
|
-
|
97
|
-
<div class="name-list">
|
98
|
-
<a href="#M000022">position</a>
|
99
|
-
<a href="#M000023">supports_cookie?</a>
|
100
|
-
</div>
|
101
|
-
</div>
|
102
|
-
|
103
|
-
</div>
|
104
|
-
|
105
|
-
|
106
|
-
<!-- if includes -->
|
107
|
-
|
108
|
-
<div id="section">
|
109
|
-
|
110
|
-
|
111
|
-
<div id="constants-list">
|
112
|
-
<h3 class="section-bar">Constants</h3>
|
113
|
-
|
114
|
-
<div class="name-list">
|
115
|
-
<table summary="Constants">
|
116
|
-
<tr class="top-aligned-row context-row">
|
117
|
-
<td class="context-item-name">USER_AGENT_REGEXP</td>
|
118
|
-
<td>=</td>
|
119
|
-
<td class="context-item-value">/^Mozilla\/3.0\(WILLCOM/</td>
|
120
|
-
<td width="3em"> </td>
|
121
|
-
<td class="context-item-desc">
|
122
|
-
対応するUser-Agentの正規表現
|
123
|
-
|
124
|
-
</td>
|
125
|
-
</tr>
|
126
|
-
</table>
|
127
|
-
</div>
|
128
|
-
</div>
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
<!-- if method_list -->
|
136
|
-
<div id="methods">
|
137
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
138
|
-
|
139
|
-
<div id="method-M000022" class="method-detail">
|
140
|
-
<a name="M000022"></a>
|
141
|
-
|
142
|
-
<div class="method-heading">
|
143
|
-
<a href="#M000022" class="method-signature">
|
144
|
-
<span class="method-name">position</span><span class="method-args">()</span>
|
145
|
-
</a>
|
146
|
-
</div>
|
147
|
-
|
148
|
-
<div class="method-description">
|
149
|
-
<p>
|
150
|
-
位置情報があれば <a href="../Position.html">Position</a>
|
151
|
-
のインスタンスを返す。無ければ <tt>nil</tt> を返す。
|
152
|
-
</p>
|
153
|
-
<p><a class="source-toggle" href="#"
|
154
|
-
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
155
|
-
<div class="method-source-code" id="M000022-source">
|
156
|
-
<pre>
|
157
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/willcom.rb, line 14</span>
|
158
|
-
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span>
|
159
|
-
15: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@__position</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span> <span class="ruby-ivar">@__position</span>
|
160
|
-
16: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@__position</span> = <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">params</span>[<span class="ruby-value str">"pos"</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">'pos'</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">''</span> )
|
161
|
-
17: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"unsupported format"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">"pos"</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^N(\d\d)\.(\d\d)\.(\d\d\.\d\d\d)E(\d\d\d)\.(\d\d)\.(\d\d\.\d\d\d)$/</span>
|
162
|
-
18: <span class="ruby-identifier">pos</span> = <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Position</span>.<span class="ruby-identifier">new</span>
|
163
|
-
19: <span class="ruby-identifier">pos</span>.<span class="ruby-identifier">lat</span> = <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Position</span>.<span class="ruby-identifier">dms2deg</span>(<span class="ruby-identifier">$1</span>,<span class="ruby-identifier">$2</span>,<span class="ruby-identifier">$3</span>)
|
164
|
-
20: <span class="ruby-identifier">pos</span>.<span class="ruby-identifier">lon</span> = <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Position</span>.<span class="ruby-identifier">dms2deg</span>(<span class="ruby-identifier">$4</span>,<span class="ruby-identifier">$5</span>,<span class="ruby-identifier">$6</span>)
|
165
|
-
21: <span class="ruby-identifier">pos</span>.<span class="ruby-identifier">tokyo2wgs84!</span>
|
166
|
-
22: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@__position</span> = <span class="ruby-identifier">pos</span>
|
167
|
-
23: <span class="ruby-keyword kw">end</span>
|
168
|
-
</pre>
|
169
|
-
</div>
|
170
|
-
</div>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
<div id="method-M000023" class="method-detail">
|
174
|
-
<a name="M000023"></a>
|
175
|
-
|
176
|
-
<div class="method-heading">
|
177
|
-
<a href="#M000023" class="method-signature">
|
178
|
-
<span class="method-name">supports_cookie?</span><span class="method-args">()</span>
|
179
|
-
</a>
|
180
|
-
</div>
|
181
|
-
|
182
|
-
<div class="method-description">
|
183
|
-
<p>
|
184
|
-
cookieに対応しているか?
|
185
|
-
</p>
|
186
|
-
<p><a class="source-toggle" href="#"
|
187
|
-
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
188
|
-
<div class="method-source-code" id="M000023-source">
|
189
|
-
<pre>
|
190
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/mobile/willcom.rb, line 25</span>
|
191
|
-
25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supports_cookie?</span>
|
192
|
-
26: <span class="ruby-keyword kw">true</span>
|
193
|
-
27: <span class="ruby-keyword kw">end</span>
|
194
|
-
</pre>
|
195
|
-
</div>
|
196
|
-
</div>
|
197
|
-
</div>
|
198
|
-
|
199
|
-
|
200
|
-
</div>
|
201
|
-
|
202
|
-
|
203
|
-
</div>
|
204
|
-
|
205
|
-
|
206
|
-
<div id="validator-badges">
|
207
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
208
|
-
</div>
|
209
|
-
|
210
|
-
</body>
|
211
|
-
</html>
|
@@ -1,384 +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::Position</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::Position</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/jpmobile/position_rb.html">
|
59
|
-
lib/jpmobile/position.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="#M000100">==</a>
|
96
|
-
<a href="#M000094">dms2deg</a>
|
97
|
-
<a href="#M000097">ll</a>
|
98
|
-
<a href="#M000098">lng</a>
|
99
|
-
<a href="#M000099">lng=</a>
|
100
|
-
<a href="#M000093">new</a>
|
101
|
-
<a href="#M000096">to_s</a>
|
102
|
-
<a href="#M000095">tokyo2wgs84!</a>
|
103
|
-
</div>
|
104
|
-
</div>
|
105
|
-
|
106
|
-
</div>
|
107
|
-
|
108
|
-
|
109
|
-
<!-- if includes -->
|
110
|
-
<div id="includes">
|
111
|
-
<h3 class="section-bar">Included Modules</h3>
|
112
|
-
|
113
|
-
<div id="includes-list">
|
114
|
-
<span class="include-name">::GeoKit::Mappable</span>
|
115
|
-
</div>
|
116
|
-
</div>
|
117
|
-
|
118
|
-
<div id="section">
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
<div id="attribute-list">
|
125
|
-
<h3 class="section-bar">Attributes</h3>
|
126
|
-
|
127
|
-
<div class="name-list">
|
128
|
-
<table>
|
129
|
-
<tr class="top-aligned-row context-row">
|
130
|
-
<td class="context-item-name">lat</td>
|
131
|
-
<td class="context-item-value"> [RW] </td>
|
132
|
-
<td class="context-item-desc">
|
133
|
-
緯度
|
134
|
-
|
135
|
-
</td>
|
136
|
-
</tr>
|
137
|
-
<tr class="top-aligned-row context-row">
|
138
|
-
<td class="context-item-name">lon</td>
|
139
|
-
<td class="context-item-value"> [RW] </td>
|
140
|
-
<td class="context-item-desc">
|
141
|
-
経度
|
142
|
-
|
143
|
-
</td>
|
144
|
-
</tr>
|
145
|
-
<tr class="top-aligned-row context-row">
|
146
|
-
<td class="context-item-name">options</td>
|
147
|
-
<td class="context-item-value"> [RW] </td>
|
148
|
-
<td class="context-item-desc">
|
149
|
-
その他の情報
|
150
|
-
|
151
|
-
</td>
|
152
|
-
</tr>
|
153
|
-
</table>
|
154
|
-
</div>
|
155
|
-
</div>
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
<!-- if method_list -->
|
160
|
-
<div id="methods">
|
161
|
-
<h3 class="section-bar">Public Class methods</h3>
|
162
|
-
|
163
|
-
<div id="method-M000094" class="method-detail">
|
164
|
-
<a name="M000094"></a>
|
165
|
-
|
166
|
-
<div class="method-heading">
|
167
|
-
<a href="#M000094" class="method-signature">
|
168
|
-
<span class="method-name">dms2deg</span><span class="method-args">(d,m,s)</span>
|
169
|
-
</a>
|
170
|
-
</div>
|
171
|
-
|
172
|
-
<div class="method-description">
|
173
|
-
<p>
|
174
|
-
度分秒を度に変換する。
|
175
|
-
</p>
|
176
|
-
<p><a class="source-toggle" href="#"
|
177
|
-
onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
|
178
|
-
<div class="method-source-code" id="M000094-source">
|
179
|
-
<pre>
|
180
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/position.rb, line 20</span>
|
181
|
-
20: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dms2deg</span>(<span class="ruby-identifier">d</span>,<span class="ruby-identifier">m</span>,<span class="ruby-identifier">s</span>)
|
182
|
-
21: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">m</span>.<span class="ruby-identifier">to_i</span>.<span class="ruby-identifier">to_f</span><span class="ruby-operator">/</span><span class="ruby-value">60</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">to_f</span><span class="ruby-operator">/</span><span class="ruby-value">3600</span>
|
183
|
-
22: <span class="ruby-keyword kw">end</span>
|
184
|
-
</pre>
|
185
|
-
</div>
|
186
|
-
</div>
|
187
|
-
</div>
|
188
|
-
|
189
|
-
<div id="method-M000093" class="method-detail">
|
190
|
-
<a name="M000093"></a>
|
191
|
-
|
192
|
-
<div class="method-heading">
|
193
|
-
<a href="#M000093" class="method-signature">
|
194
|
-
<span class="method-name">new</span><span class="method-args">()</span>
|
195
|
-
</a>
|
196
|
-
</div>
|
197
|
-
|
198
|
-
<div class="method-description">
|
199
|
-
<p><a class="source-toggle" href="#"
|
200
|
-
onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
|
201
|
-
<div class="method-source-code" id="M000093-source">
|
202
|
-
<pre>
|
203
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/position.rb, line 14</span>
|
204
|
-
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
205
|
-
15: <span class="ruby-ivar">@lat</span> = <span class="ruby-keyword kw">nil</span>
|
206
|
-
16: <span class="ruby-ivar">@lon</span> = <span class="ruby-keyword kw">nil</span>
|
207
|
-
17: <span class="ruby-ivar">@options</span> = {}
|
208
|
-
18: <span class="ruby-keyword kw">end</span>
|
209
|
-
</pre>
|
210
|
-
</div>
|
211
|
-
</div>
|
212
|
-
</div>
|
213
|
-
|
214
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
215
|
-
|
216
|
-
<div id="method-M000100" class="method-detail">
|
217
|
-
<a name="M000100"></a>
|
218
|
-
|
219
|
-
<div class="method-heading">
|
220
|
-
<a href="#M000100" class="method-signature">
|
221
|
-
<span class="method-name">==</span><span class="method-args">(x)</span>
|
222
|
-
</a>
|
223
|
-
</div>
|
224
|
-
|
225
|
-
<div class="method-description">
|
226
|
-
<p>
|
227
|
-
緯度と経度が一致している場合に <tt>true</tt>
|
228
|
-
</p>
|
229
|
-
<p><a class="source-toggle" href="#"
|
230
|
-
onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
|
231
|
-
<div class="method-source-code" id="M000100-source">
|
232
|
-
<pre>
|
233
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/position.rb, line 54</span>
|
234
|
-
54: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">x</span>)
|
235
|
-
55: <span class="ruby-identifier">x</span>.<span class="ruby-identifier">lat</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">lat</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">lon</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">lon</span>
|
236
|
-
56: <span class="ruby-keyword kw">end</span>
|
237
|
-
</pre>
|
238
|
-
</div>
|
239
|
-
</div>
|
240
|
-
</div>
|
241
|
-
|
242
|
-
<div id="method-M000097" class="method-detail">
|
243
|
-
<a name="M000097"></a>
|
244
|
-
|
245
|
-
<div class="method-heading">
|
246
|
-
<a href="#M000097" class="method-signature">
|
247
|
-
<span class="method-name">ll</span><span class="method-args">()</span>
|
248
|
-
</a>
|
249
|
-
</div>
|
250
|
-
|
251
|
-
<div class="method-description">
|
252
|
-
<p>
|
253
|
-
緯度経度をカンマ区切りで返す
|
254
|
-
</p>
|
255
|
-
<p><a class="source-toggle" href="#"
|
256
|
-
onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
|
257
|
-
<div class="method-source-code" id="M000097-source">
|
258
|
-
<pre>
|
259
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/position.rb, line 33</span>
|
260
|
-
33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ll</span>
|
261
|
-
34: <span class="ruby-node">"#{lat},#{lng}"</span>
|
262
|
-
35: <span class="ruby-keyword kw">end</span>
|
263
|
-
</pre>
|
264
|
-
</div>
|
265
|
-
</div>
|
266
|
-
</div>
|
267
|
-
|
268
|
-
<div id="method-M000098" class="method-detail">
|
269
|
-
<a name="M000098"></a>
|
270
|
-
|
271
|
-
<div class="method-heading">
|
272
|
-
<a href="#M000098" class="method-signature">
|
273
|
-
<span class="method-name">lng</span><span class="method-args">()</span>
|
274
|
-
</a>
|
275
|
-
</div>
|
276
|
-
|
277
|
-
<div class="method-description">
|
278
|
-
<p>
|
279
|
-
経度
|
280
|
-
</p>
|
281
|
-
<p><a class="source-toggle" href="#"
|
282
|
-
onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
|
283
|
-
<div class="method-source-code" id="M000098-source">
|
284
|
-
<pre>
|
285
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/position.rb, line 44</span>
|
286
|
-
44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lng</span>
|
287
|
-
45: <span class="ruby-identifier">lon</span>
|
288
|
-
46: <span class="ruby-keyword kw">end</span>
|
289
|
-
</pre>
|
290
|
-
</div>
|
291
|
-
</div>
|
292
|
-
</div>
|
293
|
-
|
294
|
-
<div id="method-M000099" class="method-detail">
|
295
|
-
<a name="M000099"></a>
|
296
|
-
|
297
|
-
<div class="method-heading">
|
298
|
-
<a href="#M000099" class="method-signature">
|
299
|
-
<span class="method-name">lng=</span><span class="method-args">(l)</span>
|
300
|
-
</a>
|
301
|
-
</div>
|
302
|
-
|
303
|
-
<div class="method-description">
|
304
|
-
<p>
|
305
|
-
経度を設定
|
306
|
-
</p>
|
307
|
-
<p><a class="source-toggle" href="#"
|
308
|
-
onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
|
309
|
-
<div class="method-source-code" id="M000099-source">
|
310
|
-
<pre>
|
311
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/position.rb, line 49</span>
|
312
|
-
49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lng=</span>(<span class="ruby-identifier">l</span>)
|
313
|
-
50: <span class="ruby-identifier">lon</span> = <span class="ruby-identifier">l</span>
|
314
|
-
51: <span class="ruby-keyword kw">end</span>
|
315
|
-
</pre>
|
316
|
-
</div>
|
317
|
-
</div>
|
318
|
-
</div>
|
319
|
-
|
320
|
-
<div id="method-M000096" class="method-detail">
|
321
|
-
<a name="M000096"></a>
|
322
|
-
|
323
|
-
<div class="method-heading">
|
324
|
-
<a href="#M000096" class="method-signature">
|
325
|
-
<span class="method-name">to_s</span><span class="method-args">()</span>
|
326
|
-
</a>
|
327
|
-
</div>
|
328
|
-
|
329
|
-
<div class="method-description">
|
330
|
-
<p>
|
331
|
-
文字列で緯度経度を返す。
|
332
|
-
</p>
|
333
|
-
<p><a class="source-toggle" href="#"
|
334
|
-
onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
|
335
|
-
<div class="method-source-code" id="M000096-source">
|
336
|
-
<pre>
|
337
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/position.rb, line 28</span>
|
338
|
-
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
339
|
-
29: <span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%s%f%s%f"</span>, <span class="ruby-ivar">@lat</span><span class="ruby-operator">></span><span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">'N'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'S'</span>, <span class="ruby-ivar">@lat</span>, <span class="ruby-ivar">@lon</span><span class="ruby-operator">></span><span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">'E'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'W'</span>, <span class="ruby-ivar">@lon</span>)
|
340
|
-
30: <span class="ruby-keyword kw">end</span>
|
341
|
-
</pre>
|
342
|
-
</div>
|
343
|
-
</div>
|
344
|
-
</div>
|
345
|
-
|
346
|
-
<div id="method-M000095" class="method-detail">
|
347
|
-
<a name="M000095"></a>
|
348
|
-
|
349
|
-
<div class="method-heading">
|
350
|
-
<a href="#M000095" class="method-signature">
|
351
|
-
<span class="method-name">tokyo2wgs84!</span><span class="method-args">()</span>
|
352
|
-
</a>
|
353
|
-
</div>
|
354
|
-
|
355
|
-
<div class="method-description">
|
356
|
-
<p>
|
357
|
-
日本測地系から世界測地系に変換する。
|
358
|
-
</p>
|
359
|
-
<p><a class="source-toggle" href="#"
|
360
|
-
onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
|
361
|
-
<div class="method-source-code" id="M000095-source">
|
362
|
-
<pre>
|
363
|
-
<span class="ruby-comment cmt"># File lib/jpmobile/position.rb, line 24</span>
|
364
|
-
24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tokyo2wgs84!</span>
|
365
|
-
25: <span class="ruby-ivar">@lat</span>, <span class="ruby-ivar">@lon</span> = <span class="ruby-constant">DatumConv</span>.<span class="ruby-identifier">tky2jgd</span>(<span class="ruby-ivar">@lat</span>,<span class="ruby-ivar">@lon</span>)
|
366
|
-
26: <span class="ruby-keyword kw">end</span>
|
367
|
-
</pre>
|
368
|
-
</div>
|
369
|
-
</div>
|
370
|
-
</div>
|
371
|
-
|
372
|
-
|
373
|
-
</div>
|
374
|
-
|
375
|
-
|
376
|
-
</div>
|
377
|
-
|
378
|
-
|
379
|
-
<div id="validator-badges">
|
380
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
381
|
-
</div>
|
382
|
-
|
383
|
-
</body>
|
384
|
-
</html>
|