Class: ResourceLinkAST

Inherits:
AST
  • Object
show all
Defined in:
lib/mediacloth/mediawikiast.rb

Overview

The node to represent a MediaWiki resource reference (embedded images, videos, etc.)

Instance Attribute Summary collapse

Attributes inherited from AST

#children, #contents, #parent

Method Summary

Methods inherited from AST

#initialize

Constructor Details

This class inherits a constructor from AST

Instance Attribute Details

#locatorObject

The resource locator



55
56
57
# File 'lib/mediacloth/mediawikiast.rb', line 55

def locator
  @locator
end

#prefixObject

The resource prefix that indicates the type of resource (e.g. an image resource is prefixed by “Image”)



53
54
55
# File 'lib/mediacloth/mediawikiast.rb', line 53

def prefix
  @prefix
end