Class: Method

Inherits:
Object show all
Includes:
MethodSource::MethodExtensions, MethodSource::SourceLocation::MethodExtensions
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

Methods included from MethodSource::MethodExtensions

#comment, included, #source

Methods included from MethodSource::SourceLocation::MethodExtensions

#source_location

Methods included from MethodSource::ReeSourceLocation

#source_location

Instance Method Details

#duplicable?Boolean

Methods are not duplicable:

method(:puts).duplicable? # => false
method(:puts).dup         # => TypeError: allocator undefined for Method

Returns:

  • (Boolean)


36
37
38
# 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 36

def duplicable?
  false
end