class Glug::Subscriptable
allows us to create conditions with syntax any[(highway=='primary'),(highway=='trunk')]
Public Class Methods
new(type)
click to toggle source
# File lib/glug/condition.rb, line 8 def initialize(type) @type=type end
Public Instance Methods
[](*arguments)
click to toggle source
# File lib/glug/condition.rb, line 11 def [](*arguments) Condition.new.from_list(@type, arguments) end