class PSD class Layer module BlendModes extend Forwardable attr_reader :blend_mode def_delegators :blend_mode, :opacity, :visible, :clipped? alias_method :visible?, :visible # Is this layer hidden? def hidden? !visible end def blending_mode if !info[:section_divider].nil? && info[:section_divider].blend_mode BlendMode::BLEND_MODES[info[:section_divider].blend_mode.strip.to_sym] else @blend_mode.mode end end private def parse_blend_modes @blend_mode = BlendMode.new(@file) @blend_mode.parse! end end end end