Class: VCSRuby::Stream
- Inherits:
-
Object
- Object
- VCSRuby::Stream
- Defined in:
- lib/stream.rb
Instance Method Summary collapse
- #create_accessors ⇒ Object
-
#initialize(stream) ⇒ Stream
constructor
A new instance of Stream.
Constructor Details
#initialize(stream) ⇒ Stream
Returns a new instance of Stream.
7 8 9 10 |
# File 'lib/stream.rb', line 7 def initialize stream @stream = stream create_accessors end |
Instance Method Details
#create_accessors ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/stream.rb', line 12 def create_accessors @stream.each do |key, value| self.class.send :define_method, key.to_sym do return @stream[key] end end end |