Sha256: adac1c7ef91b90bb2faa1fd03b78e2b9cdfd84d5e687123014bc3f69b912da63
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true require "yaml" module RailsInteractive class CLI # Categories class for the interactive CLI module class Categories def initialize @categories = YAML.load_file("#{__dir__}/config/categories.yml").uniq end def all @categories.sort_by { |category| category["weight"] } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-interactive-2.0.0 | lib/cli/categories.rb |