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
1135
1136
1137
|
# File 'lib/deplate/regions.rb', line 1135
def inline
@inline
end
|
#is_template ⇒ Object
1135
1136
1137
|
# File 'lib/deplate/regions.rb', line 1135
def is_template
@is_template
end
|
Instance Method Details
#finish ⇒ Object
1142
1143
1144
1145
1146
1147
1148
1149
1150
|
# File 'lib/deplate/regions.rb', line 1142
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
|
1161
1162
1163
1164
1165
|
# File 'lib/deplate/regions.rb', line 1161
def format_clip(invoker, expected)
@expected = expected
@invoker = invoker
format_special
end
|
#from_strings(strings) ⇒ Object
1137
1138
1139
1140
|
# File 'lib/deplate/regions.rb', line 1137
def from_strings(strings)
@accum = strings
finish
end
|
#log(*args) ⇒ Object
1167
1168
1169
1170
1171
1172
1173
|
# File 'lib/deplate/regions.rb', line 1167
def log(*args)
if defined?(@invoker) and @invoker
@invoker.log(*args)
else
super
end
end
|
#process ⇒ Object
1152
1153
1154
1155
1156
1157
1158
1159
|
# File 'lib/deplate/regions.rb', line 1152
def process
unless @processed
@processed = true
return super
else
return self
end
end
|