Class: Ec2Tools
- Inherits:
-
Object
- Object
- Ec2Tools
- Defined in:
- lib/ec2_tools.rb
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(config_file = nil) ⇒ Ec2Tools
constructor
A new instance of Ec2Tools.
- #inspect ⇒ Object
- #method_missing(name, *args) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/ec2_tools.rb', line 11 def method_missing(name, *args) define_method(:name) do |_args| @ec2.send(name, _args) end self.send(name, args) end |
Instance Method Details
#inspect ⇒ Object
18 19 20 |
# File 'lib/ec2_tools.rb', line 18 def inspect "#<Ec2Tools>" end |