Class: BaseReciever
- Inherits:
-
Object
- Object
- BaseReciever
- Defined in:
- lib/libisi/reciever/base.rb
Overview
Copyright © 2007-2010 Logintas AG Switzerland
This file is part of Libisi.
Libisi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Libisi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Libisi. If not, see <www.gnu.org/licenses/>.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#create_block ⇒ Object
Returns the value of attribute create_block.
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(recieving_concept, options = {}, &block) ⇒ BaseReciever
constructor
A new instance of BaseReciever.
Constructor Details
#initialize(recieving_concept, options = {}, &block) ⇒ BaseReciever
Returns a new instance of BaseReciever.
22 23 24 25 |
# File 'lib/libisi/reciever/base.rb', line 22 def initialize(recieving_concept, = {}, &block) raise "No create block given" unless block @create_block = block end |
Instance Attribute Details
#create_block ⇒ Object
Returns the value of attribute create_block.
20 21 22 |
# File 'lib/libisi/reciever/base.rb', line 20 def create_block @create_block end |
Instance Method Details
#get ⇒ Object
27 28 29 |
# File 'lib/libisi/reciever/base.rb', line 27 def get @create_block.call(self.get_io) end |