Module: Docx::DSL

Defined in:
lib/docx/dsl.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



32
33
34
35
36
37
38
39
# File 'lib/docx/dsl.rb', line 32

def method_missing name, *args
  puts "name: #{name}"
  puts "args: #{args}"
  /set_row_(.+)/.match name do
    return set_row *(args << $1) if $1
  end
  super
end