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.
36 37 38 |
# File 'lib/ve.rb', line 36 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
40 41 42 43 44 |
# File 'lib/ve.rb', line 40 def method_missing(function, *args) provider = Ve::Manager.provider_for(@language, function) parse = provider.parse(args[0]) parse.send(function.to_sym) end |