module MotionBlender::Source::GlobalConstants
Public Instance Methods
find_global_constants()
click to toggle source
# File lib/motion_blender/source/global_constants.rb, line 13 def find_global_constants if like_module? if children.first.type.const? children.first.code.split('::', 2).first end else children.compact.map(&:find_global_constants) end end
global_constants()
click to toggle source
# File lib/motion_blender/source/global_constants.rb, line 4 def global_constants @global_constants ||= if root? Array.wrap(find_global_constants).flatten.compact.uniq else root.global_constants end end