Class: BigBand::Integration::YARD::CodeObjects::RouteObject

Inherits:
YARD::CodeObjects::MethodObject
  • Object
show all
Defined in:
lib/big_band/integration/yard.rb

Constant Summary collapse

ISEP =
::YARD::CodeObjects::ISEP

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#http_pathObject

Returns the value of attribute http_path.



13
14
15
# File 'lib/big_band/integration/yard.rb', line 13

def http_path
  @http_path
end

#http_verbObject

Returns the value of attribute http_verb.



13
14
15
# File 'lib/big_band/integration/yard.rb', line 13

def http_verb
  @http_verb
end

#real_nameObject

Returns the value of attribute real_name.



13
14
15
# File 'lib/big_band/integration/yard.rb', line 13

def real_name
  @real_name
end

Instance Method Details

#name(prefix = false) ⇒ Object



14
15
16
17
# File 'lib/big_band/integration/yard.rb', line 14

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

Returns:

  • (Boolean)


19
20
21
# File 'lib/big_band/integration/yard.rb', line 19

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