Class: YARD::CodeObjects::RouteObject

Inherits:
MethodObject
  • Object
show all
Defined in:
lib/yard/sinatra.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#http_pathObject

Returns the value of attribute http_path.



17
18
19
# File 'lib/yard/sinatra.rb', line 17

def http_path
  @http_path
end

#http_verbObject

Returns the value of attribute http_verb.



17
18
19
# File 'lib/yard/sinatra.rb', line 17

def http_verb
  @http_verb
end

#real_nameObject

Returns the value of attribute real_name.



17
18
19
# File 'lib/yard/sinatra.rb', line 17

def real_name
  @real_name
end

Instance Method Details

#name(prefix = false) ⇒ Object



19
20
21
22
# File 'lib/yard/sinatra.rb', line 19

def name(prefix = false)
  return super unless show_real_name?
  prefix ? (sep == ISEP ? "#{sep}#{real_name}" : real_name.to_s) : real_name.to_sym
end

#show_real_name?Boolean



26
27
28
# File 'lib/yard/sinatra.rb', line 26

def show_real_name?
  real_name and caller[1] =~ /`signature'/
end