Class: Media::Label
- Inherits:
-
Object
- Object
- Media::Label
- Defined in:
- lib/media/label.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Label
constructor
A new instance of Label.
- #to_s ⇒ Object
Constructor Details
#initialize(args) ⇒ Label
Returns a new instance of Label.
3 4 5 |
# File 'lib/media/label.rb', line 3 def initialize(args) @name = args.fetch(:name, []) end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/media/label.rb', line 7 def to_s "[#{@name}]" end |