Class: YARD::CodeObjects::RouteObject
- Inherits:
-
MethodObject
- Object
- MethodObject
- YARD::CodeObjects::RouteObject
- Defined in:
- lib/yard/sinatra.rb
Instance Attribute Summary collapse
-
#http_path ⇒ Object
Returns the value of attribute http_path.
-
#http_verb ⇒ Object
Returns the value of attribute http_verb.
-
#real_name ⇒ Object
Returns the value of attribute real_name.
Instance Method Summary collapse
Instance Attribute Details
#http_path ⇒ Object
Returns the value of attribute http_path.
17 18 19 |
# File 'lib/yard/sinatra.rb', line 17 def http_path @http_path end |
#http_verb ⇒ Object
Returns the value of attribute http_verb.
17 18 19 |
# File 'lib/yard/sinatra.rb', line 17 def http_verb @http_verb end |
#real_name ⇒ Object
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 |