Class: Ve::LocalInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/ve.rb

Overview

TODO: Put into separate files

Instance Method Summary collapse

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