Class: ArgDef
Instance Attribute Summary collapse
-
#dcl ⇒ Object
readonly
Returns the value of attribute dcl.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(arg) ⇒ ArgDef
constructor
A new instance of ArgDef.
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 |