Class: Osmer::Schema::Custom::Dsl
Instance Method Summary
collapse
-
#lines(name, options = {}, &block) ⇒ Object
-
#multilines(name, options = {}, &block) ⇒ Object
-
#multipolygons(name, options = {}, &block) ⇒ Object
-
#points(name, options = {}, &block) ⇒ Object
-
#polygons(name, options = {}, &block) ⇒ Object
-
#table(name, type, options, &block) ⇒ Object
Methods inherited from Base::Dsl
#method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Osmer::Schema::Base::Dsl
Instance Method Details
#lines(name, options = {}, &block) ⇒ Object
129
130
131
|
# File 'lib/osmer/schema/custom.rb', line 129
def lines(name, options = {}, &block)
table name, :lines, options, &block
end
|
#multilines(name, options = {}, &block) ⇒ Object
121
122
123
|
# File 'lib/osmer/schema/custom.rb', line 121
def multilines(name, options = {}, &block)
table name, :multilines, options, &block
end
|
#multipolygons(name, options = {}, &block) ⇒ Object
117
118
119
|
# File 'lib/osmer/schema/custom.rb', line 117
def multipolygons(name, options = {}, &block)
table name, :multipolygons, options, &block
end
|
#points(name, options = {}, &block) ⇒ Object
133
134
135
|
# File 'lib/osmer/schema/custom.rb', line 133
def points(name, options = {}, &block)
table name, :points, options, &block
end
|
#polygons(name, options = {}, &block) ⇒ Object
125
126
127
|
# File 'lib/osmer/schema/custom.rb', line 125
def polygons(name, options = {}, &block)
table name, :polygons, options, &block
end
|
#table(name, type, options, &block) ⇒ Object
137
138
139
|
# File 'lib/osmer/schema/custom.rb', line 137
def table(name, type, options, &block)
schema.tables << Table.new(schema, name, type, options).configure(&block)
end
|