module MotionBlender::Source::WrappingModules
Public Instance Methods
class_content?()
click to toggle source
# File lib/motion_blender/source/wrapping_modules.rb, line 19 def class_content? parent && parent.type.class? && (parent.children[2] == self) end
module_content?()
click to toggle source
# File lib/motion_blender/source/wrapping_modules.rb, line 15 def module_content? parent && parent.type.module? && (parent.children[1] == self) end
parent_module()
click to toggle source
# File lib/motion_blender/source/wrapping_modules.rb, line 9 def parent_module if module_content? || class_content? [parent.type.to_s, parent.children.first.code] end end
wrapping_modules()
click to toggle source
# File lib/motion_blender/source/wrapping_modules.rb, line 4 def wrapping_modules @wrapping_modules ||= [*parent.try(:wrapping_modules), parent_module].compact end