Class: YARDGo::CodeObjects::FuncObject

Inherits:
YARD::CodeObjects::MethodObject
  • Object
show all
Defined in:
lib/yard-go/code_objects.rb

Instance Method Summary collapse

Instance Method Details

#name(str = false) ⇒ Object



49
# File 'lib/yard-go/code_objects.rb', line 49

def name(str = false) str ? super(false).to_s : super(false) end

#scope_nameObject



52
# File 'lib/yard-go/code_objects.rb', line 52

def scope_name; has_tag?(:abstract) ? "Interface Method" : (scope == :class ? "Function" : "Method") end

#sepObject



48
# File 'lib/yard-go/code_objects.rb', line 48

def sep; '.' end

#source_typeObject



53
# File 'lib/yard-go/code_objects.rb', line 53

def source_type; :go end

#titleObject



51
# File 'lib/yard-go/code_objects.rb', line 51

def title; parent.title + "." + name.to_s + "()" end

#typeObject



50
# File 'lib/yard-go/code_objects.rb', line 50

def type; :method end