Class: DRab::DRabArray
- Inherits:
-
Object
- Object
- DRab::DRabArray
- Defined in:
- lib/drab/drab.rb
Defined Under Namespace
Classes: Token
Class Method Summary collapse
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(ary) ⇒ DRabArray
constructor
A new instance of DRabArray.
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
173 174 175 |
# File 'lib/drab/drab.rb', line 173 def self._dump(lv) raise Exception.new("not marshallable") end |
._load(s) ⇒ Object
169 170 171 |
# File 'lib/drab/drab.rb', line 169 def self._load(s) raise Exception.new("not marshallable") end |
Instance Method Details
#get ⇒ Object
165 166 167 |
# File 'lib/drab/drab.rb', line 165 def get @ary end |