Class: Osmer::Dsl

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#osmerObject

Returns the value of attribute osmer

Returns:

  • (Object)

    the current value of osmer



78
79
80
# File 'lib/osmer.rb', line 78

def osmer
  @osmer
end

Instance Method Details

#prefix(value) ⇒ Object



86
87
88
# File 'lib/osmer.rb', line 86

def prefix(value)
  osmer.prefix = value
end

#schema(name, options, &block) ⇒ Object



80
81
82
83
84
# File 'lib/osmer.rb', line 80

def schema(name, options, &block)
  schema = osmer.add_schema name, options
  schema.configure &block if block
  schema
end