Class: Erbside::Cpp
Overview
Constant Summary
collapse
- EXTENSIONS =
%w{ .c .cpp }
Constants inherited
from Inline
Inline::TAG
Instance Attribute Summary
Attributes inherited from Inline
#context, #file, #result, #type
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Inline
#block_parts, #changed?, #content, #exist?, extension_list, factory, #format_block, #format_side, inherited, #initialize, #line_match, map, #output, register, #relative_output, #remarker_multiline, #render, #render_blocks, #render_result, #render_sides, #render_template, #save
Class Method Details
.extensions ⇒ Object
10
11
12
|
# File 'lib/erbside/inline/cpp.rb', line 10
def self.extensions
EXTENSIONS
end
|
Instance Method Details
#block_match ⇒ Object
30
31
32
33
34
|
# File 'lib/erbside/inline/cpp.rb', line 30
def block_match
b = Regexp.escape()
e = Regexp.escape()
%r{^(\s*)(#{b})(\s*)(:#{TAG})(\+\d*)?(\:)(\s*)((?m:.*?))(\s#{e})}
end
|
15
16
17
|
# File 'lib/erbside/inline/cpp.rb', line 15
def
'//'
end
|
20
21
22
|
# File 'lib/erbside/inline/cpp.rb', line 20
def
'/*'
end
|
25
26
27
|
# File 'lib/erbside/inline/cpp.rb', line 25
def
'*/'
end
|