instance method
acts_like_string?
Ruby on Rails 8.0.4
Since v3.0.20Signature
acts_like_string?()
Enables more predictable duck-typing on String-like classes. See Object#acts_like?.
Source
# File activesupport/lib/active_support/core_ext/string/behavior.rb, line 5
def acts_like_string?
true
end
Defined in activesupport/lib/active_support/core_ext/string/behavior.rb line 5
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in String