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, #index, #length, #parent

Method Summary

Methods inherited from AST

#initialize

Constructor Details

This class inherits a constructor from AST

Instance Attribute Details

#locatorObject

The resource locator



71
72
73
# File 'lib/mediacloth/mediawikiast.rb', line 71

def locator
  @locator
end

#prefixObject

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



69
70
71
# File 'lib/mediacloth/mediawikiast.rb', line 69

def prefix
  @prefix
end