jpmobile 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/README +41 -4
  2. data/Rakefile +11 -9
  3. data/lib/jpmobile.rb +0 -6
  4. data/lib/jpmobile/emoticon.rb +105 -0
  5. data/lib/jpmobile/emoticon/au.rb +644 -0
  6. data/lib/jpmobile/emoticon/conversion_table.rb +3908 -0
  7. data/lib/jpmobile/emoticon/docomo.rb +255 -0
  8. data/lib/jpmobile/emoticon/softbank.rb +477 -0
  9. data/lib/jpmobile/emoticon/z_combine.rb +20 -0
  10. data/lib/jpmobile/filter.rb +73 -51
  11. data/lib/jpmobile/helpers.rb +4 -4
  12. data/lib/jpmobile/hook_abstract_request.rb +6 -2
  13. data/lib/jpmobile/hook_action_controller.rb +10 -0
  14. data/lib/jpmobile/hook_action_view.rb +7 -0
  15. data/lib/jpmobile/mobile/abstract_mobile.rb +5 -1
  16. data/lib/jpmobile/mobile/au.rb +1 -1
  17. data/lib/jpmobile/mobile/docomo.rb +2 -5
  18. data/lib/jpmobile/mobile/softbank.rb +9 -1
  19. data/lib/jpmobile/mobile/z_display_info_docomo.rb +32 -10
  20. data/lib/jpmobile/mobile/z_ip_addresses.rb +6 -6
  21. data/lib/jpmobile/mobile/z_ip_addresses_au.rb +2 -1
  22. data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +6 -1
  23. data/lib/jpmobile/trans_sid.rb +5 -2
  24. data/lib/jpmobile/version.rb +1 -1
  25. data/test/au_test.rb +1 -0
  26. data/test/docomo_test.rb +8 -0
  27. data/test/emoticon_functional_test.rb +166 -0
  28. data/test/emoticon_test.rb +58 -0
  29. data/test/filter_functional_test.rb +146 -0
  30. data/test/filter_test.rb +8 -8
  31. data/test/softbank_test.rb +18 -0
  32. data/tools/generate_au_emoticon_table.rb +25 -0
  33. data/tools/{update_emoji_docomo.rb → generate_docomo_emoticon_table.rb} +4 -8
  34. data/tools/generate_emoticon_conversion_table.rb +107 -0
  35. data/tools/generate_softbank_emoticon_table.rb +32 -0
  36. data/tools/update_display_info_docomo.rb +3 -5
  37. metadata +18 -75
  38. data/NOTES +0 -21
  39. data/TODO +0 -16
  40. data/doc/classes/ActionController.html +0 -107
  41. data/doc/classes/ActionController/AbstractRequest.html +0 -216
  42. data/doc/classes/ActionView.html +0 -101
  43. data/doc/classes/DatumConv.html +0 -324
  44. data/doc/classes/Jpmobile/Display.html +0 -333
  45. data/doc/classes/Jpmobile/Filter.html +0 -119
  46. data/doc/classes/Jpmobile/Filter/Base.html +0 -269
  47. data/doc/classes/Jpmobile/Filter/Emoji.html +0 -130
  48. data/doc/classes/Jpmobile/Filter/Emoji/Inner.html +0 -183
  49. data/doc/classes/Jpmobile/Filter/Emoji/Outer.html +0 -187
  50. data/doc/classes/Jpmobile/Filter/FilterTable.html +0 -178
  51. data/doc/classes/Jpmobile/Filter/HankakuKana.html +0 -170
  52. data/doc/classes/Jpmobile/Filter/Sjis.html +0 -244
  53. data/doc/classes/Jpmobile/Helpers.html +0 -558
  54. data/doc/classes/Jpmobile/Mobile.html +0 -141
  55. data/doc/classes/Jpmobile/Mobile/AbstractMobile.html +0 -324
  56. data/doc/classes/Jpmobile/Mobile/Au.html +0 -415
  57. data/doc/classes/Jpmobile/Mobile/Ddipocket.html +0 -138
  58. data/doc/classes/Jpmobile/Mobile/Docomo.html +0 -366
  59. data/doc/classes/Jpmobile/Mobile/Jphone.html +0 -212
  60. data/doc/classes/Jpmobile/Mobile/Softbank.html +0 -300
  61. data/doc/classes/Jpmobile/Mobile/Vodafone.html +0 -176
  62. data/doc/classes/Jpmobile/Mobile/Willcom.html +0 -210
  63. data/doc/classes/Jpmobile/Position.html +0 -384
  64. data/doc/created.rid +0 -1
  65. data/doc/files/CHANGELOG.html +0 -110
  66. data/doc/files/NOTES.html +0 -163
  67. data/doc/files/README.html +0 -345
  68. data/doc/files/TODO.html +0 -138
  69. data/doc/files/lib/jpmobile/datum_conv_rb.html +0 -110
  70. data/doc/files/lib/jpmobile/filter_rb.html +0 -115
  71. data/doc/files/lib/jpmobile/helpers_rb.html +0 -105
  72. data/doc/files/lib/jpmobile/hook_abstract_request_rb.html +0 -109
  73. data/doc/files/lib/jpmobile/hook_action_view_rb.html +0 -119
  74. data/doc/files/lib/jpmobile/mobile/abstract_mobile_rb.html +0 -108
  75. data/doc/files/lib/jpmobile/mobile/au_rb.html +0 -112
  76. data/doc/files/lib/jpmobile/mobile/display_rb.html +0 -111
  77. data/doc/files/lib/jpmobile/mobile/docomo_rb.html +0 -105
  78. data/doc/files/lib/jpmobile/mobile/softbank_rb.html +0 -115
  79. data/doc/files/lib/jpmobile/mobile/willcom_rb.html +0 -108
  80. data/doc/files/lib/jpmobile/mobile/z_display_info_docomo_rb.html +0 -114
  81. data/doc/files/lib/jpmobile/mobile/z_emoji_docomo_rb.html +0 -119
  82. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_au_rb.html +0 -114
  83. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_rb.html +0 -117
  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/trans_sid_rb.html +0 -114
  87. data/doc/files/lib/jpmobile/version_rb.html +0 -101
  88. data/doc/files/lib/jpmobile_rb.html +0 -101
  89. data/doc/fr_class_index.html +0 -50
  90. data/doc/fr_file_index.html +0 -50
  91. data/doc/fr_method_index.html +0 -113
  92. data/doc/index.html +0 -24
  93. data/doc/rdoc-style.css +0 -208
  94. data/lib/jpmobile/mobile/z_emoji_docomo.rb +0 -508
  95. data/test/firefox_test.rb +0 -8
  96. data/test/transitsid_test.rb +0 -86
@@ -1,210 +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="#M000004">position</a>&nbsp;&nbsp;
99
- <a href="#M000005">supports_cookie?</a>&nbsp;&nbsp;
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">&nbsp;</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-M000004" class="method-detail">
140
- <a name="M000004"></a>
141
-
142
- <div class="method-heading">
143
- <a href="#M000004" 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('M000004-source');return false;">[Source]</a></p>
155
- <div class="method-source-code" id="M000004-source">
156
- <pre>
157
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/willcom.rb, line 12</span>
158
- 12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span>
159
- 13: <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">params</span>[<span class="ruby-value str">&quot;pos&quot;</span>].<span class="ruby-identifier">blank?</span>
160
- 14: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;unsupported format&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;pos&quot;</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>
161
- 15: <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>
162
- 16: <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>)
163
- 17: <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>)
164
- 18: <span class="ruby-identifier">pos</span>.<span class="ruby-identifier">tokyo2wgs84!</span>
165
- 19: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pos</span>
166
- 20: <span class="ruby-keyword kw">end</span>
167
- </pre>
168
- </div>
169
- </div>
170
- </div>
171
-
172
- <div id="method-M000005" class="method-detail">
173
- <a name="M000005"></a>
174
-
175
- <div class="method-heading">
176
- <a href="#M000005" class="method-signature">
177
- <span class="method-name">supports_cookie?</span><span class="method-args">()</span>
178
- </a>
179
- </div>
180
-
181
- <div class="method-description">
182
- <p>
183
- cookieに対応しているか?
184
- </p>
185
- <p><a class="source-toggle" href="#"
186
- onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
187
- <div class="method-source-code" id="M000005-source">
188
- <pre>
189
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/willcom.rb, line 22</span>
190
- 22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supports_cookie?</span>
191
- 23: <span class="ruby-keyword kw">true</span>
192
- 24: <span class="ruby-keyword kw">end</span>
193
- </pre>
194
- </div>
195
- </div>
196
- </div>
197
-
198
-
199
- </div>
200
-
201
-
202
- </div>
203
-
204
-
205
- <div id="validator-badges">
206
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
207
- </div>
208
-
209
- </body>
210
- </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="#M000074">==</a>&nbsp;&nbsp;
96
- <a href="#M000068">dms2deg</a>&nbsp;&nbsp;
97
- <a href="#M000071">ll</a>&nbsp;&nbsp;
98
- <a href="#M000072">lng</a>&nbsp;&nbsp;
99
- <a href="#M000073">lng=</a>&nbsp;&nbsp;
100
- <a href="#M000067">new</a>&nbsp;&nbsp;
101
- <a href="#M000070">to_s</a>&nbsp;&nbsp;
102
- <a href="#M000069">tokyo2wgs84!</a>&nbsp;&nbsp;
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">&nbsp;[RW]&nbsp;</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">&nbsp;[RW]&nbsp;</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">&nbsp;[RW]&nbsp;</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-M000068" class="method-detail">
164
- <a name="M000068"></a>
165
-
166
- <div class="method-heading">
167
- <a href="#M000068" 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('M000068-source');return false;">[Source]</a></p>
178
- <div class="method-source-code" id="M000068-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-M000067" class="method-detail">
190
- <a name="M000067"></a>
191
-
192
- <div class="method-heading">
193
- <a href="#M000067" 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('M000067-source');return false;">[Source]</a></p>
201
- <div class="method-source-code" id="M000067-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-M000074" class="method-detail">
217
- <a name="M000074"></a>
218
-
219
- <div class="method-heading">
220
- <a href="#M000074" 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('M000074-source');return false;">[Source]</a></p>
231
- <div class="method-source-code" id="M000074-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">&amp;&amp;</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-M000071" class="method-detail">
243
- <a name="M000071"></a>
244
-
245
- <div class="method-heading">
246
- <a href="#M000071" 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('M000071-source');return false;">[Source]</a></p>
257
- <div class="method-source-code" id="M000071-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">&quot;#{lat},#{lng}&quot;</span>
262
- 35: <span class="ruby-keyword kw">end</span>
263
- </pre>
264
- </div>
265
- </div>
266
- </div>
267
-
268
- <div id="method-M000072" class="method-detail">
269
- <a name="M000072"></a>
270
-
271
- <div class="method-heading">
272
- <a href="#M000072" 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('M000072-source');return false;">[Source]</a></p>
283
- <div class="method-source-code" id="M000072-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-M000073" class="method-detail">
295
- <a name="M000073"></a>
296
-
297
- <div class="method-heading">
298
- <a href="#M000073" 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('M000073-source');return false;">[Source]</a></p>
309
- <div class="method-source-code" id="M000073-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-M000070" class="method-detail">
321
- <a name="M000070"></a>
322
-
323
- <div class="method-heading">
324
- <a href="#M000070" 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('M000070-source');return false;">[Source]</a></p>
335
- <div class="method-source-code" id="M000070-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">&quot;%s%f%s%f&quot;</span>, <span class="ruby-ivar">@lat</span><span class="ruby-operator">&gt;</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">&gt;</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-M000069" class="method-detail">
347
- <a name="M000069"></a>
348
-
349
- <div class="method-heading">
350
- <a href="#M000069" 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('M000069-source');return false;">[Source]</a></p>
361
- <div class="method-source-code" id="M000069-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>