Class: GEPUB::Builder::MetaItem

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

Instance Method Summary collapse

Constructor Details

#initialize(item) ⇒ MetaItem


155
156
157
# File 'lib/gepub/builder.rb', line 155

def initialize(item)
  @item = item
end

Instance Method Details

#alt(alternates = {}) ⇒ Object


163
164
165
# File 'lib/gepub/builder.rb', line 163

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

#apply_one_to_multiObject


159
160
161
# File 'lib/gepub/builder.rb', line 159

def apply_one_to_multi
  false
end

#file_as(name) ⇒ Object


167
168
169
# File 'lib/gepub/builder.rb', line 167

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

#group_position(num) ⇒ Object


175
176
177
# File 'lib/gepub/builder.rb', line 175

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

#id(val) ⇒ Object


179
180
181
# File 'lib/gepub/builder.rb', line 179

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

#seq(num) ⇒ Object


171
172
173
# File 'lib/gepub/builder.rb', line 171

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