Class: Tap::Declarations::Lazydoc::Declaration

Inherits:
Comment
  • Object
show all
Defined in:
lib/tap/declarations.rb

Instance Method Summary collapse

Instance Method Details

#resolve(lines) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/tap/declarations.rb', line 10

def resolve(lines)
  super
  
  @subject = case
  when content.empty? || content[0][0].to_s !~ /^::desc(.*)/ then ""
  else
    content[0].shift
    $1.strip
  end
  
  self
end