Class: Aniview::Interface::PrefItem

Inherits:
Item
  • Object
show all
Defined in:
lib/aniview/interface/pref/prefitem.rb

Instance Method Summary collapse

Methods inherited from Item

#attributes, #cereal

Constructor Details

#initialize(title, value, path_ = []) ⇒ PrefItem

Returns a new instance of PrefItem.



6
7
8
9
10
11
12
# File 'lib/aniview/interface/pref/prefitem.rb', line 6

def initialize(title, value, path_ = [])
  @path = path_
  @attr = {
    "t" => title,
    "v" => value,
  }
end

Instance Method Details

#pathObject



14
15
16
# File 'lib/aniview/interface/pref/prefitem.rb', line 14

def path
  return @path
end