Class: Spectra::SwiftExtension
- Defined in:
- lib/spectra/templates/swift_extension.rb
Instance Attribute Summary
Attributes inherited from Template
Instance Method Summary collapse
-
#filename ⇒ Object
Pathing.
- #renamer ⇒ Object
Methods inherited from Template
#format_color_name, #format_color_value, from_attributes, #initialize, #parse_color, #parse_colors, #path, #render, template_name, #to_s
Constructor Details
This class inherits a constructor from Spectra::Template
Instance Method Details
#filename ⇒ Object
Pathing
16 17 18 |
# File 'lib/spectra/templates/swift_extension.rb', line 16 def filename return 'Colors.swift' end |
#renamer ⇒ Object
8 9 10 |
# File 'lib/spectra/templates/swift_extension.rb', line 8 def renamer @renamer ||= lambda { |name, prefix| name.camelize(true) } end |