Sha256: 7b797ea90e7b45e6288e0bfa3c9f281f59375ef93e75c53fd06eb8c2b57d2f6d
Contents?: true
Size: 534 Bytes
Versions: 3
Compression:
Stored size: 534 Bytes
Contents
require 'rails/generators' module Refills class ListGenerator < Rails::Generators::Base desc 'List refills' def list puts 'Available Refills' puts '=================' stylesheets.each do |file_name| puts '- ' + file_name.gsub(/_|\.scss/, '') end end private def stylesheets refills_dir = File.expand_path('../../../source/stylesheets/refills', __FILE__) stylesheets = Dir.entries(refills_dir) stylesheets.reject {|f| f == '.' || f == '..' } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
refills-0.2.0 | lib/refills/list_generator.rb |
refills-0.1.0 | lib/refills/list_generator.rb |
refills-0.0.2 | lib/refills/list_generator.rb |