Class: DRab::DRabArray

Inherits:
Object
  • Object
show all
Defined in:
lib/drab/drab.rb

Defined Under Namespace

Classes: Token

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ary) ⇒ DRabArray

Returns a new instance of DRabArray.



151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/drab/drab.rb', line 151

def initialize(ary)
  @ary = ary.collect { |obj|
    if obj.kind_of? DRabUndumped
      DRabObject.new(obj)
    else
      begin
        obj
      rescue
        DRabObject.new(obj)
      end
    end
  }
end

Class Method Details

._dump(lv) ⇒ Object

Raises:

  • (Exception)


173
174
175
# File 'lib/drab/drab.rb', line 173

def self._dump(lv)
  raise Exception.new("not marshallable")
end

._load(s) ⇒ Object

Raises:

  • (Exception)


169
170
171
# File 'lib/drab/drab.rb', line 169

def self._load(s)
  raise Exception.new("not marshallable")
end

Instance Method Details

#getObject



165
166
167
# File 'lib/drab/drab.rb', line 165

def get
  @ary
end