함수 is present()

Jmnote (토론 | 기여)님의 2016년 1월 29일 (금) 19:02 판 (새 문서: ;is_present() ==Ruby== category: Ruby <source lang='ruby'> a = { 'foo' => 1 } puts a.key?('foo') # true puts a.key?('bar') # false </source>)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
is_present()

Ruby

a = { 'foo' => 1 }
puts a.key?('foo')
# true
puts a.key?('bar')
# false
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}