Class: UnboundMethod
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/method_source-1.0.0/lib/method_source.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/core_ext/object/duplicable.rb
Instance Method Summary collapse
-
#duplicable? ⇒ Boolean
Unbound methods are not duplicable:.
Methods included from MethodSource::MethodExtensions
Methods included from MethodSource::SourceLocation::UnboundMethodExtensions
Methods included from MethodSource::ReeSourceLocation
Instance Method Details
#duplicable? ⇒ Boolean
Unbound methods are not duplicable:
method(:puts).unbind.duplicable? # => false
method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod
46 47 48 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/core_ext/object/duplicable.rb', line 46 def duplicable? false end |