Class: Deplate::Particle::NonCJK

Inherits:
Deplate::Particle
  • Object
show all
Defined in:
lib/deplate/mod/lang-zh_CN-autospace.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.partObject

Returns the value of attribute part.



90
91
92
# File 'lib/deplate/mod/lang-zh_CN-autospace.rb', line 90

def part
  @part
end

Instance Method Details

#processObject



97
98
99
100
101
102
103
104
105
# File 'lib/deplate/mod/lang-zh_CN-autospace.rb', line 97

def process
    unless self.class.part
        particles = @@particles + @@particles_extended
        particles.delete(self.class)
        self.class.part = particles
    end
    @elt = @deplate.parse_with_particles(@container, @elt, self.class.part)
    @elt = @deplate.format_particles(@elt)
end

#setupObject



93
94
95
# File 'lib/deplate/mod/lang-zh_CN-autospace.rb', line 93

def setup
    @elt  = @match[0]
end