Class: GEPUB::Builder::MetaItem

Inherits:
Object
  • Object
show all
Defined in:
lib/gepub/builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(item) ⇒ MetaItem

Returns a new instance of MetaItem.


153
154
155
# File 'lib/gepub/builder.rb', line 153

def initialize(item)
  @item = item
end

Instance Method Details

#alt(alternates = {}) ⇒ Object


161
162
163
# File 'lib/gepub/builder.rb', line 161

def alt(alternates = {})
  @item.add_alternates(alternates)
end

#apply_one_to_multiObject


157
158
159
# File 'lib/gepub/builder.rb', line 157

def apply_one_to_multi
  false
end

#file_as(name) ⇒ Object


165
166
167
# File 'lib/gepub/builder.rb', line 165

def file_as(name)
  @item.file_as(name)
end

#group_position(num) ⇒ Object


173
174
175
# File 'lib/gepub/builder.rb', line 173

def group_position(num)
  @item.group_position(num)
end

#id(val) ⇒ Object


177
178
179
# File 'lib/gepub/builder.rb', line 177

def id(val)
  @item['id'] = val
end

#seq(num) ⇒ Object


169
170
171
# File 'lib/gepub/builder.rb', line 169

def seq(num)
  @item.display_seq(num)
end