検索結果
-
Symbol
# ==(other) -> true | false (18101) -
other が同じシンボルの時に真を返します。 そうでない場合は偽を返します。
other が同じシンボルの時に真を返します。
そうでない場合は偽を返します。
@param other 比較対象のシンボルを指定します。 -
Symbol
# id2name -> String (7) -
シンボルに対応する文字列を返します。
...逆に、文字列に対応するシンボルを得るには
String#intern を使います。
p :foo.id2name # => "foo"
p :foo.id2name.intern == :foo # => true
@see String#intern... -
Symbol
# to _ s -> String (7) -
シンボルに対応する文字列を返します。
...逆に、文字列に対応するシンボルを得るには
String#intern を使います。
p :foo.id2name # => "foo"
p :foo.id2name.intern == :foo # => true
@see String#intern...
