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