Class: ArgDef

Inherits:
Object
  • Object
show all
Defined in:
ext/oci8/apiwrap.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arg) ⇒ ArgDef

Returns a new instance of ArgDef.



8
9
10
11
12
13
# File 'ext/oci8/apiwrap.rb', line 8

def initialize(arg)
  /(\w+)\s*$/ =~ arg
  /\(\*(\w+)\)/ =~ arg if $1.nil?
  @dcl = arg
  @name = $1
end

Instance Attribute Details

#dclObject (readonly)

Returns the value of attribute dcl.



5
6
7
# File 'ext/oci8/apiwrap.rb', line 5

def dcl
  @dcl
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'ext/oci8/apiwrap.rb', line 6

def name
  @name
end