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

Version Path
yard-slipstream-0.1.23 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.22 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.21 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.20 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.19 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.18 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.17 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.16 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.15 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.14 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.13 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.12 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.11 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.10 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.9 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.8 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.7 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.6 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.5 lib/yard-slipstream/handler.rb
yard-slipstream-0.1.4 lib/yard-slipstream/handler.rb