Class: Xssh::Aws::Config
- Inherits:
-
Object
- Object
- Xssh::Aws::Config
- Defined in:
- lib/xssh/aws/config.rb
Instance Method Summary collapse
- #cache(mode = nil) ⇒ Object
-
#initialize(block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(block) ⇒ Config
Returns a new instance of Config.
4 5 6 7 |
# File 'lib/xssh/aws/config.rb', line 4 def initialize(block) @cache = false instance_eval(&block) end |
Instance Method Details
#cache(mode = nil) ⇒ Object
9 10 11 12 13 |
# File 'lib/xssh/aws/config.rb', line 9 def cache(mode = nil) return @cache if mode == nil @cache = mode end |