Sha256: a983a822dfd36aba6f5909b0315065f1695f39071677eabae34764f9e696ca2a
Contents?: true
Size: 489 Bytes
Versions: 4
Compression:
Stored size: 489 Bytes
Contents
module Yoda module AST module MethodTraversable # @return [true, false] def method? false end # @return [Namespace] def including_method @including_method ||= method? ? self : parent.including_method end # @param location [Location] # @return [DefNode, DefSingletonNode, nil] def calc_current_location_method(location) positionally_nearest_child(location)&.including_method end end end end
Version data entries
4 entries across 4 versions & 1 rubygems