Module: Sass::Script::Functions
- Defined in:
- lib/bullseye/sass/bullseye_functions.rb
Instance Method Summary collapse
Instance Method Details
#bullseye(target) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/bullseye/sass/bullseye_functions.rb', line 5 def bullseye(target) assert_type target, :String part_finder = Bullseye::FindParts::PartFinder.new(target.value) selectors = part_finder.actions.collect do |action| Bullseye.config.css_selector.gsub(':action', action).gsub(':controller', part_finder.controller) end Sass::Script::String.new(selectors.join(',')) end |