Module: HadoopDsl::DslElement

Included in:
BaseModel, DslController
Defined in:
lib/core.rb

Overview

common

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object

all DSL statements without def is processed here



8
9
10
11
12
# File 'lib/core.rb', line 8

def method_missing(name, *args)
  # if block given, labeled for non-local exit
  catch name do; yield end if block_given?
  self
end