Class: Literal::AbstractLiteral

Inherits:
Chunk::Abstract show all
Defined in:
app/models/chunks/literal.rb

Direct Known Subclasses

Pre, Tags

Instance Attribute Summary

Attributes inherited from Chunk::Abstract

#text, #unmask_mode, #unmask_text

Instance Method Summary collapse

Methods inherited from Chunk::Abstract

apply_to, #escaped?, #id, inherited, #mask, mask_re, mask_string, #rendered?, #revert, #unmask

Constructor Details

#initialize(match_data, content) ⇒ AbstractLiteral

Returns a new instance of AbstractLiteral.



11
12
13
14
# File 'app/models/chunks/literal.rb', line 11

def initialize(match_data, content)
  super
  @unmask_text = @text
end