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.33

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.



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

def step_index
  @step_index
end

Instance Method Details

#processObject



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

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

#setup(text) ⇒ Object



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

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