Sha256: 5d8eb35575b371309bad940a40adb246682646fa8fcd85808aaa9ee6e5ca105f
Contents?: true
Size: 322 Bytes
Versions: 1
Compression:
Stored size: 322 Bytes
Contents
module AngularSprinkles module Helpers module DirectiveHelper def directive(directive_name, opts = {}, &block) options = opts.dup.symbolize_keys options[directive_name] = "" options[:scope_name] ||= "#{directive_name}Ctrl" _element(options, &block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
angular_sprinkles-0.3.0 | lib/angular_sprinkles/helpers/directive_helper.rb |