Class: TestProf::RSpecStamp::Parser::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/test_prof/rspec_stamp/parser.rb

Overview

Contains the result of parsing

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descObject

Returns the value of attribute desc.



13
14
15
# File 'lib/test_prof/rspec_stamp/parser.rb', line 13

def desc
  @desc
end

#fnameObject

Returns the value of attribute fname.



13
14
15
# File 'lib/test_prof/rspec_stamp/parser.rb', line 13

def fname
  @fname
end

#htagsObject (readonly)

Returns the value of attribute htags.



14
15
16
# File 'lib/test_prof/rspec_stamp/parser.rb', line 14

def htags
  @htags
end

#tagsObject (readonly)

Returns the value of attribute tags.



14
15
16
# File 'lib/test_prof/rspec_stamp/parser.rb', line 14

def tags
  @tags
end

Instance Method Details

#add_htag(k, v) ⇒ Object



21
22
23
24
# File 'lib/test_prof/rspec_stamp/parser.rb', line 21

def add_htag(k, v)
  @htags ||= []
  @htags << [k, v]
end

#add_tag(v) ⇒ Object



16
17
18
19
# File 'lib/test_prof/rspec_stamp/parser.rb', line 16

def add_tag(v)
  @tags ||= []
  @tags << v
end