403Webshell
Server IP : 66.29.132.122  /  Your IP : 18.220.53.93
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/highline-2.1.0/lib/highline/menu/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/highline-2.1.0/lib/highline/menu/item.rb
# encoding: utf-8

class HighLine
  class Menu < Question
    # Represents an Item of a HighLine::Menu.
    #
    class Item
      attr_reader :name, :text, :help, :action

      #
      # @param name [String] The name that is matched against the user input
      # @param attributes [Hash] options Hash to tailor menu item to your needs
      # @option attributes text: [String] The text that displays for that
      #   choice (defaults to name)
      # @option attributes help: [String] help/hint string to be displayed.
      # @option attributes action: [Block] a block that gets called when choice
      #   is selected
      #
      def initialize(name, attributes)
        @name = name
        @text = attributes[:text] || @name
        @help = attributes[:help]
        @action = attributes[:action]
      end

      def item_help
        return {} unless help
        { name.to_s.downcase => help }
      end
    end
  end
end

Youez - 2016 - github.com/yon3zu
LinuXploit