class Decode::Comment::Attribute

Describes an attribute type.

Constants

PATTERN

Attributes

type[R]

The type of the attribute. @attribute [String]

Public Class Methods

build(directive, match) click to toggle source
# File lib/decode/comment/attribute.rb, line 32
def self.build(directive, match)
        node = self.new(directive, match[:type])
        
        if details = match[:details]
                node.add(Text.new(details))
        end
        
        return node
end
new(directive, type) click to toggle source
Calls superclass method
# File lib/decode/comment/attribute.rb, line 42
def initialize(directive, type)
        super(directive)
        
        @type = type
end