Class: Media::Helper::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/media/helper/label.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Label

Returns a new instance of Label.

[View source]

4
5
6
# File 'lib/media/helper/label.rb', line 4

def initialize(args)
  @name = args.fetch(:name, [])
end

Instance Method Details

#to_sObject

[View source]

8
9
10
# File 'lib/media/helper/label.rb', line 8

def to_s
  "[#{@name}]"
end