Class: Ve::LocalInterface
- Inherits:
-
Object
- Object
- Ve::LocalInterface
- Defined in:
- lib/ve.rb
Overview
TODO: Put into separate files
Instance Method Summary collapse
-
#initialize(language, config = {}) ⇒ LocalInterface
constructor
A new instance of LocalInterface.
- #method_missing(function, *args) ⇒ Object
Constructor Details
#initialize(language, config = {}) ⇒ LocalInterface
Returns a new instance of LocalInterface.
54 55 56 |
# File 'lib/ve.rb', line 54 def initialize(language, config = {}) @language = language end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(function, *args) ⇒ Object
58 59 60 61 62 |
# File 'lib/ve.rb', line 58 def method_missing(function, *args) provider = Ve::Manager.provider_for(@language, function) parse = provider.parse(args[0]) parse.send(function.to_sym) end |