Class: Decode::Comment::Pragma
- Defined in:
- lib/decode/comment/pragma.rb
Overview
Asserts a specific property about the method signature.
-
‘@reentrant This method is thread-safe.`
-
‘@deprecated Please use other_method instead.`
-
‘@blocking This method may block.`
-
‘@asynchronous This method may yield.`
Instance Attribute Summary
Attributes inherited from Tag
Attributes inherited from Node
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(directive) ⇒ Pragma
constructor
A new instance of Pragma.
Methods inherited from Tag
Methods inherited from Node
#add, #children?, #each, #filter, #text, #traverse
Constructor Details
#initialize(directive) ⇒ Pragma
Returns a new instance of Pragma.
32 33 34 |
# File 'lib/decode/comment/pragma.rb', line 32 def initialize(directive) super(directive) end |
Class Method Details
.build(directive, text) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/decode/comment/pragma.rb', line 22 def self.build(directive, text) node = self.new(directive) if text node.add(Text.new(text)) end return node end |
.parse(directive, text, lines, tags, level = 0) ⇒ Object
18 19 20 |
# File 'lib/decode/comment/pragma.rb', line 18 def self.parse(directive, text, lines, , level = 0) self.build(directive, text) end |