Class: Uniword::Properties::Tabs
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Uniword::Properties::Tabs
- Defined in:
- lib/uniword/properties/tabs.rb
Overview
Tab stops collection
Represents <w:tabs> element containing multiple tab stop definitions.
Instance Method Summary collapse
-
#<<(tab_stop) ⇒ Object
Delegate array operations to tab_stops.
- #[](index) ⇒ Object
- #each ⇒ Object
- #empty? ⇒ Boolean
- #first ⇒ Object
- #last ⇒ Object
- #map ⇒ Object
- #size ⇒ Object
Instance Method Details
#<<(tab_stop) ⇒ Object
Delegate array operations to tab_stops
31 32 33 |
# File 'lib/uniword/properties/tabs.rb', line 31 def <<(tab_stop) tab_stops << tab_stop end |
#[](index) ⇒ Object
47 48 49 |
# File 'lib/uniword/properties/tabs.rb', line 47 def [](index) tab_stops[index] end |
#each ⇒ Object
51 52 53 |
# File 'lib/uniword/properties/tabs.rb', line 51 def each(&) tab_stops.each(&) end |
#empty? ⇒ Boolean
59 60 61 |
# File 'lib/uniword/properties/tabs.rb', line 59 def empty? tab_stops.empty? end |
#first ⇒ Object
39 40 41 |
# File 'lib/uniword/properties/tabs.rb', line 39 def first tab_stops.first end |
#last ⇒ Object
43 44 45 |
# File 'lib/uniword/properties/tabs.rb', line 43 def last tab_stops.last end |
#map ⇒ Object
55 56 57 |
# File 'lib/uniword/properties/tabs.rb', line 55 def map(&) tab_stops.map(&) end |
#size ⇒ Object
35 36 37 |
# File 'lib/uniword/properties/tabs.rb', line 35 def size tab_stops.size end |