Sha256: e9c2d719869247bb28cf97bbef59fc7fb0b6c9c4708bfba1655b79503c52cf75

Contents?: true

Size: 274 Bytes

Versions: 3

Compression:

Stored size: 274 Bytes

Contents

include YARD::MRuby::Templates::Helpers::HTMLHelper

def init
  sections :header, [:function_signature, T('docstring'), :source]
end

def source
  return if owner != object.namespace
  return if Tags::OverloadTag === object
  return if object.source.nil?
  erb(:source)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yard-mruby-0.2.2 templates/default/function_details/setup.rb
yard-mruby-0.2.1 templates/default/function_details/setup.rb
yard-mruby-0.2.0 templates/default/function_details/setup.rb