Class: RGitHook::Plugin::Option
Overview
- ::nodoc
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, description, default, type) ⇒ Option
constructor
A new instance of Option.
Constructor Details
#initialize(name, description, default, type) ⇒ Option
Returns a new instance of Option.
8 9 10 |
# File 'lib/rgithook/plugin.rb', line 8 def initialize(name,description,default,type) @name, @description, @default, @type = name,description,default,type end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
7 8 9 |
# File 'lib/rgithook/plugin.rb', line 7 def default @default end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
7 8 9 |
# File 'lib/rgithook/plugin.rb', line 7 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/rgithook/plugin.rb', line 7 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/rgithook/plugin.rb', line 7 def type @type end |