i'm doing work on a third-party project. self.configure
block enormous, , contains number of with
statements, e.g.:
def self.configure 'ead' |node| make :resource end ignore 'titlepage' 'archdesc' # etc
this looks switch statement somehow built method's argument section, i've never seen syntax before. here know going on?
it's method taking string , block:
it's defining xml tag handlers:
def with(path, &block) define_method(handler_name(path), block) end
Comments
Post a Comment