Module: HTMLSchema::Helper

Defined in:
lib/html-schema/helper.rb

Instance Method Summary collapse

Instance Method Details

#htmlschema(*args) ⇒ Object



3
4
5
6
7
8
# File 'lib/html-schema/helper.rb', line 3

def htmlschema(*args)
  options                = args.extract_options!
  object                 = HTMLSchema.instance
  args.each { |i| object = object.send(i) }
  object.to_hash.merge(options)
end