Method: Decode::Comment::Pragma.build

Defined in:
lib/decode/comment/pragma.rb

.build(directive, match) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/decode/comment/pragma.rb', line 35

def self.build(directive, match)
	node = self.new(directive)
	
	if details = match[:details]
		node.add(Text.new(details))
	end
	
	return node
end