Class: Bashly::Models::EnvironmentVariable

Inherits:
Base
  • Object
show all
Defined in:
lib/bashly/models/environment_variable.rb

Constant Summary

Constants inherited from Base

Base::OPTION_KEYS

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#help, #initialize, #method_missing, #optional, #respond_to?, #summary

Methods included from Renderable

#render, #strings

Constructor Details

This class inherits a constructor from Bashly::Models::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Bashly::Models::Base

Instance Method Details

#usage_string(extended: false) ⇒ Object



4
5
6
7
8
# File 'lib/bashly/models/environment_variable.rb', line 4

def usage_string(extended: false)
  result = [name.upcase]
  result << strings[:required] if required and extended
  result.join " "
end