Class: BaseParameter
- Inherits:
-
Object
- Object
- BaseParameter
- 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
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#object ⇒ Object
Returns the value of attribute object.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize ⇒ BaseParameter
constructor
A new instance of BaseParameter.
Constructor Details
#initialize ⇒ BaseParameter
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
#arguments ⇒ Object
Returns the value of attribute arguments.
34 35 36 |
# File 'lib/libisi/parameter/base.rb', line 34 def arguments @arguments end |
#object ⇒ Object
Returns the value of attribute object.
34 35 36 |
# File 'lib/libisi/parameter/base.rb', line 34 def object @object end |
#options ⇒ Object
Returns the value of attribute options.
34 35 36 |
# File 'lib/libisi/parameter/base.rb', line 34 def @options end |