module MotionBlender::Source::ReferringConstants
Public Instance Methods
referring_constant?()
click to toggle source
# File lib/motion_blender/source/referring_constants.rb, line 17 def referring_constant? type.const? end
referring_constants()
click to toggle source
# File lib/motion_blender/source/referring_constants.rb, line 4 def referring_constants @referring_constants ||= begin child_constants = children.map(&:referring_constants).inject(&:+).to_a if referring_constant? child_constants + [[wrapping_modules.map(&:last), code]] else child_constants.dup end end end