Class: Stream

Inherits:
Object show all
Extended by:
ClassMethods
Includes:
Assertions, Constants, Examples
Defined in:
app/models/stream.rb

Overview

Copyright (C) 2013 by Greg Lawson

<[email protected]>

Copyright: See COPYING file that comes with this distribution

Defined Under Namespace

Modules: Assertions, ClassMethods, Constants, Examples

Instance Method Summary collapse

Methods included from Assertions

#assert_post_conditions, #assert_pre_conditions

Constructor Details

#initialize(*args) ⇒ Stream

Returns a new instance of Stream.


12
13
14
15
16
17
18
# File 'app/models/stream.rb', line 12

def initialize(*args)
  if args.size=1 then
    @buffer=[args]
  else
    @buffer=args
  end #if
end