class Decode::Comment::Yields

Describes a block parameter.

Should contain nested parameters.

Constants

PATTERN

Attributes

block[R]

Public Class Methods

build(directive, match) click to toggle source
# File lib/decode/comment/yields.rb, line 33
def self.build(directive, match)
        node = self.new(directive, match[:block])
        
        if details = match[:details]
                node.add(Text.new(details))
        end
        
        return node
end
new(directive, block) click to toggle source
Calls superclass method Decode::Comment::Tag::new
# File lib/decode/comment/yields.rb, line 43
def initialize(directive, block)
        super(directive)
        
        @block = block
end