Module: ActiveSupport::CoreExtensions::String::Behavior

Included in:
String
Defined in:
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/behavior.rb

Instance Method Summary collapse

Instance Method Details

#acts_like_string?Boolean

Enable more predictable duck-typing on String-like classes. See Object#acts_like?.

Returns:

  • (Boolean)


7
8
9
# File 'lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/behavior.rb', line 7

def acts_like_string?
  true
end