Class: Aniview::Interface::PrefItem
- Defined in:
- lib/aniview/interface/pref/prefitem.rb
Instance Attribute Summary
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(title, value, path_ = []) ⇒ PrefItem
constructor
A new instance of PrefItem.
- #path ⇒ Object
Methods inherited from Item
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
#path ⇒ Object
14 15 16 |
# File 'lib/aniview/interface/pref/prefitem.rb', line 14 def path return @path end |