Class: BaseParameter

Inherits:
Object
  • Object
show all
Defined in:
lib/libisi/parameter/base.rb

Overview

object: Object to work on

  • a Class: For class methods

  • a Object: For instance methods

  • a Hash of Attributes: For pseudo instance functions

  • nil: For normal functions without context (default)

arguments: Array of arguments (ARGV?) default: []

parameters: Hash of options default: {}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBaseParameter

Returns a new instance of BaseParameter.



35
36
37
38
39
# File 'lib/libisi/parameter/base.rb', line 35

def initialize
  @object = nil
  @arguments = []
  @options = {}    
end

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments.



34
35
36
# File 'lib/libisi/parameter/base.rb', line 34

def arguments
  @arguments
end

#objectObject

Returns the value of attribute object.



34
35
36
# File 'lib/libisi/parameter/base.rb', line 34

def object
  @object
end

#optionsObject

Returns the value of attribute options.



34
35
36
# File 'lib/libisi/parameter/base.rb', line 34

def options
  @options
end