Sha256: 1fba3de13b18beff62ce3a921c61708b591ec08978d3718584b429ad0e0eaa26
Contents?: true
Size: 989 Bytes
Versions: 24
Compression:
Stored size: 989 Bytes
Contents
# class RSpecDescribeHandler < YARD::Handlers::Ruby::Base # handles method_call(:describe) # # def process # objname = statement.parameters.first.jump(:string_content).source # if statement.parameters[1] # src = statement.parameters[1].jump(:string_content).source # objname += (src[0] == "#" ? "" : "::") + src # end # obj = {:spec => owner ? (owner[:spec] || "") : ""} # obj[:spec] += objname # parse_block(statement.last.last, owner: obj) # rescue YARD::Handlers::NamespaceMissingError # end # end # class RSpecItHandler < YARD::Handlers::Ruby::Base # handles method_call(:it) # # def process # return if owner.nil? # obj = P(owner[:spec]) # return if obj.is_a?(Proxy) # # (obj[:specifications] ||= []) << { # name: statement.parameters.first.jump(:string_content).source, # file: statement.file, # line: statement.line, # source: statement.last.last.source.chomp # } # end # end
Version data entries
24 entries across 24 versions & 1 rubygems