Class: RGitHook::Plugin::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/rgithook/plugin.rb

Overview

::nodoc

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#defaultObject (readonly)

Returns the value of attribute default.



7
8
9
# File 'lib/rgithook/plugin.rb', line 7

def default
  @default
end

#descriptionObject (readonly)

Returns the value of attribute description.



7
8
9
# File 'lib/rgithook/plugin.rb', line 7

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/rgithook/plugin.rb', line 7

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/rgithook/plugin.rb', line 7

def type
  @type
end