diff options
Diffstat (limited to 'lib/oxidized/string.rb')
-rw-r--r-- | lib/oxidized/string.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/oxidized/string.rb b/lib/oxidized/string.rb index d95bcae..4bdfbf2 100644 --- a/lib/oxidized/string.rb +++ b/lib/oxidized/string.rb @@ -19,5 +19,14 @@ module Oxidized @name = @cmd.strip.gsub(/\s+/, '_') if @name == nil end + def initialize str='' + super + if str.class == Oxidized::String + @cmd = str.cmd + @name = str.name + @type = str.type + end + end + end end |