Class: Deplate::Regions::Clip
Instance Attribute Summary collapse
Instance Method Summary
collapse
#push_styles
check_file, clean_strings, #deprecated_regnote, deprecated_regnote, #finish_accum, #format_compound, regions, register_as, set_line_cont, #setup
Methods inherited from Element
#join_lines, #join_lines_re_zh_cn
Instance Attribute Details
#inline ⇒ Object
1157
1158
1159
|
# File 'lib/deplate/regions.rb', line 1157
def inline
@inline
end
|
#is_template ⇒ Object
1157
1158
1159
|
# File 'lib/deplate/regions.rb', line 1157
def is_template
@is_template
end
|
Instance Method Details
#finish ⇒ Object
1164
1165
1166
1167
1168
1169
1170
1171
1172
|
# File 'lib/deplate/regions.rb', line 1164
def finish
finish_accum
id = deprecated_regnote('id')
@doc_type = :array
@processed = false
@elt = @deplate.parsed_array_from_strings(@accum, @source.begin, @source.file)
@deplate.set_clip(id, self)
return nil
end
|
1183
1184
1185
1186
1187
|
# File 'lib/deplate/regions.rb', line 1183
def format_clip(invoker, expected)
@expected = expected
@invoker = invoker
format_special
end
|
#from_strings(strings) ⇒ Object
1159
1160
1161
1162
|
# File 'lib/deplate/regions.rb', line 1159
def from_strings(strings)
@accum = strings
finish
end
|
#log(*args) ⇒ Object
1189
1190
1191
1192
1193
1194
1195
|
# File 'lib/deplate/regions.rb', line 1189
def log(*args)
if defined?(@invoker) and @invoker
@invoker.log(*args)
else
super
end
end
|
#process ⇒ Object
1174
1175
1176
1177
1178
1179
1180
1181
|
# File 'lib/deplate/regions.rb', line 1174
def process
unless @processed
@processed = true
return super
else
return self
end
end
|