Class: Deplate::Macro::HighStep

Inherits:
FormattedText
  • Object
show all
Defined in:
lib/deplate/mod/html-highstep.rb

Overview

html-highstep.rb @Author: Thomas Link (micathom AT gmail com) @License: GPL (see www.gnu.org/licenses/gpl.txt) @Created: 2007-01-06. @Revision: 0.31

Description

Provide the macro ”step” to mark text for stepwise highlighting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#step_indexObject (readonly)

Returns the value of attribute step_index.



12
13
14
# File 'lib/deplate/mod/html-highstep.rb', line 12

def step_index
  @step_index
end

Instance Method Details

#processObject



18
19
20
# File 'lib/deplate/mod/html-highstep.rb', line 18

def process
    format_particle(:format_highstep, self, super)
end

#setup(text) ⇒ Object



14
15
16
17
# File 'lib/deplate/mod/html-highstep.rb', line 14

def setup(text)
    @step_index = @deplate.formatter.stepwise_next
    super
end