Class: Seahorse::Client::Plugin::PluginOption Private
- Inherits:
-
Object
- Object
- Seahorse::Client::Plugin::PluginOption
- Defined in:
- lib/seahorse/client/plugin.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #default ⇒ Object private
- #default_block ⇒ Object private
- #doc_default ⇒ Object private
- #doc_type ⇒ Object private
- #docstring ⇒ Object private
- #name ⇒ Object readonly private
- #required ⇒ Object private
Instance Method Summary collapse
- #documented? ⇒ Boolean private
-
#initialize(name, options = {}) ⇒ PluginOption
constructor
private
A new instance of PluginOption.
Constructor Details
#initialize(name, options = {}) ⇒ PluginOption
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of PluginOption.
110 111 112 113 114 115 |
# File 'lib/seahorse/client/plugin.rb', line 110 def initialize(name, = {}) @name = name .each_pair do |opt_name, opt_value| self.send("#{opt_name}=", opt_value) end end |
Instance Attribute Details
#default ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
118 119 120 |
# File 'lib/seahorse/client/plugin.rb', line 118 def default @default end |
#default_block ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
119 120 121 |
# File 'lib/seahorse/client/plugin.rb', line 119 def default_block @default_block end |
#doc_default ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
122 123 124 |
# File 'lib/seahorse/client/plugin.rb', line 122 def doc_default @doc_default end |
#doc_type ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
121 122 123 |
# File 'lib/seahorse/client/plugin.rb', line 121 def doc_type @doc_type end |
#docstring ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
123 124 125 |
# File 'lib/seahorse/client/plugin.rb', line 123 def docstring @docstring end |
#name ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
117 118 119 |
# File 'lib/seahorse/client/plugin.rb', line 117 def name @name end |
#required ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
120 121 122 |
# File 'lib/seahorse/client/plugin.rb', line 120 def required @required end |
Instance Method Details
#documented? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
133 134 135 |
# File 'lib/seahorse/client/plugin.rb', line 133 def documented? !!docstring end |