Sha256: de306d70d3d2c0a0a72298ea7101dc2a497aaa358a890edfa12576410f33ca10
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
module LunarShell module Satellites class HelpController < LunarShell::SatellitesController PUBLIC = false def run @message = 'Never give up! Never surrender!' end private def commands @commands ||= self.class.superclass.subclasses. select { |sat| sat::PUBLIC }. map { |sat| sat.name.split('::').last.underscore[0..-12] }. sort end helper_method :commands end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lunar_shell-0.5.2 | app/controllers/lunar_shell/satellites/help_controller.rb |