Class: Spectra::SwiftExtension

Inherits:
Template
  • Object
show all
Defined in:
lib/spectra/templates/swift_extension.rb

Instance Attribute Summary

Attributes inherited from Template

#colors, #prefix

Instance Method Summary collapse

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

#filenameObject

Pathing



16
17
18
# File 'lib/spectra/templates/swift_extension.rb', line 16

def filename
  return 'Colors.swift' 
end

#renamerObject



8
9
10
# File 'lib/spectra/templates/swift_extension.rb', line 8

def renamer
  @renamer ||= lambda { |name, prefix| name.camelize(true) } 
end