Class: BaseEnvironment

Inherits:
Object
  • Object
show all
Defined in:
lib/libisi/environment/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

HttpEnvironment, RootEnvironment

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent, options = nil) ⇒ BaseEnvironment

Returns a new instance of BaseEnvironment.



22
23
24
# File 'lib/libisi/environment/base.rb', line 22

def initialize(parent, options = nil)
  #parent = RootEnvironment.new if parent.nil?
end

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



20
21
22
# File 'lib/libisi/environment/base.rb', line 20

def parent
  @parent
end

Instance Method Details

#execute(task) ⇒ Object



29
# File 'lib/libisi/environment/base.rb', line 29

def execute(task); raise "Not implemented"; end

#implementationObject



27
# File 'lib/libisi/environment/base.rb', line 27

def implementation; raise "Not implemented"; end

#instanceObject



28
# File 'lib/libisi/environment/base.rb', line 28

def instance; raise "Not implemented"; end

#languageObject



34
# File 'lib/libisi/environment/base.rb', line 34

def language; parent.language; end

#nameObject



33
# File 'lib/libisi/environment/base.rb', line 33

def name; parent.name; end

#typeObject



26
# File 'lib/libisi/environment/base.rb', line 26

def type; raise "Not implemented"; end

#uriObject



32
# File 'lib/libisi/environment/base.rb', line 32

def uri; parent.uri; end

#userObject



31
# File 'lib/libisi/environment/base.rb', line 31

def user; parent.user; end