Class: NSWTopo::Labels::Label
- Inherits:
-
Struct
- Object
- Struct
- NSWTopo::Labels::Label
- Defined in:
- lib/nswtopo/layer/labels.rb
Instance Attribute Summary collapse
-
#along ⇒ Object
Returns the value of attribute along.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#elements ⇒ Object
Returns the value of attribute elements.
-
#feature_index ⇒ Object
Returns the value of attribute feature_index.
-
#hull ⇒ Object
Returns the value of attribute hull.
-
#label_index ⇒ Object
Returns the value of attribute label_index.
-
#layer_name ⇒ Object
Returns the value of attribute layer_name.
-
#ordinal ⇒ Object
Returns the value of attribute ordinal.
-
#priority ⇒ Object
Returns the value of attribute priority.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #categories ⇒ Object
- #conflicts ⇒ Object
- #optional? ⇒ Boolean
- #point? ⇒ Boolean
Instance Attribute Details
#along ⇒ Object
Returns the value of attribute along
249 250 251 |
# File 'lib/nswtopo/layer/labels.rb', line 249 def along @along end |
#attributes ⇒ Object
Returns the value of attribute attributes
249 250 251 |
# File 'lib/nswtopo/layer/labels.rb', line 249 def attributes @attributes end |
#elements ⇒ Object
Returns the value of attribute elements
249 250 251 |
# File 'lib/nswtopo/layer/labels.rb', line 249 def elements @elements end |
#feature_index ⇒ Object
Returns the value of attribute feature_index
249 250 251 |
# File 'lib/nswtopo/layer/labels.rb', line 249 def feature_index @feature_index end |
#hull ⇒ Object
Returns the value of attribute hull
249 250 251 |
# File 'lib/nswtopo/layer/labels.rb', line 249 def hull @hull end |
#label_index ⇒ Object
Returns the value of attribute label_index
249 250 251 |
# File 'lib/nswtopo/layer/labels.rb', line 249 def label_index @label_index end |
#layer_name ⇒ Object
Returns the value of attribute layer_name
249 250 251 |
# File 'lib/nswtopo/layer/labels.rb', line 249 def layer_name @layer_name end |
#ordinal ⇒ Object
Returns the value of attribute ordinal.
266 267 268 |
# File 'lib/nswtopo/layer/labels.rb', line 266 def ordinal @ordinal end |
#priority ⇒ Object
Returns the value of attribute priority
249 250 251 |
# File 'lib/nswtopo/layer/labels.rb', line 249 def priority @priority end |
Instance Method Details
#<=>(other) ⇒ Object
267 268 269 |
# File 'lib/nswtopo/layer/labels.rb', line 267 def <=>(other) self.ordinal <=> other.ordinal end |
#categories ⇒ Object
258 259 260 |
# File 'lib/nswtopo/layer/labels.rb', line 258 def categories attributes["categories"] end |
#conflicts ⇒ Object
262 263 264 |
# File 'lib/nswtopo/layer/labels.rb', line 262 def conflicts @conflicts ||= Set.new end |
#optional? ⇒ Boolean
254 255 256 |
# File 'lib/nswtopo/layer/labels.rb', line 254 def optional? attributes["optional"] end |
#point? ⇒ Boolean
250 251 252 |
# File 'lib/nswtopo/layer/labels.rb', line 250 def point? along.nil? end |