Module: Bullseye::FindParts

Included in:
PartFinder, Tilt::BullseyeTemplate
Defined in:
lib/bullseye/find_parts.rb

Defined Under Namespace

Classes: PartFinder

Constant Summary collapse

SEPARATOR =
'-'

Instance Method Summary collapse

Instance Method Details

#actionsObject



5
6
7
# File 'lib/bullseye/find_parts.rb', line 5

def actions
  parts.last.split(SEPARATOR)
end

#controllerObject



9
10
11
# File 'lib/bullseye/find_parts.rb', line 9

def controller
  parts[0..-2].join(SEPARATOR)
end

#partsObject



13
14
15
# File 'lib/bullseye/find_parts.rb', line 13

def parts
  @parts ||= @source.split('/')
end