Class: PrefItem
- Inherits:
-
Object
- Object
- PrefItem
- Defined in:
- lib/aniview/util/pref.rb
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(title, value, path_ = []) ⇒ PrefItem
constructor
A new instance of PrefItem.
- #path ⇒ Object
Constructor Details
#initialize(title, value, path_ = []) ⇒ PrefItem
Returns a new instance of PrefItem.
123 124 125 126 127 128 129 |
# File 'lib/aniview/util/pref.rb', line 123 def initialize(title, value, path_ = []) @path = path_ @attr = { "t" => title, "v" => value, } end |
Instance Method Details
#attributes ⇒ Object
131 132 133 |
# File 'lib/aniview/util/pref.rb', line 131 def attributes return @attr end |
#path ⇒ Object
134 135 136 |
# File 'lib/aniview/util/pref.rb', line 134 def path return @path end |