Method: Zafu::ParsingRules#scan_asset
- Defined in:
- lib/zafu/parsing_rules.rb
#scan_asset ⇒ Object
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 |
# File 'lib/zafu/parsing_rules.rb', line 261 def scan_asset # puts "ASSET(#{object_id}) [#{@text}]" if @text =~ /\A<(\w+)([^>]*?)(\/?)>/ eat $& @method = 'rename_asset' @markup.tag = $1 @end_tag = $1 closed = ($3 != '') @params = Markup.parse_params($2) if closed leave(:asset) elsif @markup.tag == 'script' enter(:void) else enter(:inside_asset) end else # error @method = 'void' flush end end |