Class: Glug::Subscriptable
- Inherits:
-
Object
- Object
- Glug::Subscriptable
- Defined in:
- lib/glug.rb
Overview
—– Subscriptable
allows us to create conditions with syntax
any[(highway=='primary'),(highway=='trunk')]
Instance Method Summary collapse
- #[](*arguments) ⇒ Object
-
#initialize(type) ⇒ Subscriptable
constructor
A new instance of Subscriptable.
Constructor Details
#initialize(type) ⇒ Subscriptable
Returns a new instance of Subscriptable.
11 12 13 |
# File 'lib/glug.rb', line 11 def initialize(type) @type=type end |