Sha256: 3120d2ceb18b81dac3200e9a3eb12d033375cf62a426343294cbd3ce66b5092c
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refills-0.0.1 | lib/refills/list_generator.rb |