Sha256: 5795ce98a9f475f27b765ec6757c839a45e0fd268381d408c64d95d3b33300d3
Contents?: true
Size: 424 Bytes
Versions: 3
Compression:
Stored size: 424 Bytes
Contents
class YARD::Handlers::C::ConstantHandler < YARD::Handlers::C::Base MATCH = %r{\brb_define_((?:readonly_)?variable|(?:global_)?const) \s*\((?:\s*(\w+),)?\s*"(\w+)",\s*(.*?)\s*\)\s*;}xm handles MATCH statement_class BodyStatement process do statement.source.scan(MATCH) do |type, var_name, const_name, value| handle_constants(type, var_name, const_name, value) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
deg-yard-0.8.7.4 | lib/yard/handlers/c/constant_handler.rb |
deg-yard-0.8.7.3 | lib/yard/handlers/c/constant_handler.rb |
deg-yard-0.8.7.1 | lib/yard/handlers/c/constant_handler.rb |