Class: PrefItem

Inherits:
Object
  • Object
show all
Defined in:
lib/aniview/util/pref.rb

Instance Method Summary collapse

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

#attributesObject



131
132
133
# File 'lib/aniview/util/pref.rb', line 131

def attributes
	return @attr
end

#pathObject



134
135
136
# File 'lib/aniview/util/pref.rb', line 134

def path
	return @path
end