Class: EasyTag::Interfaces::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/easytag/interfaces/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#infoObject (readonly)

Returns the value of attribute info.



4
5
6
# File 'lib/easytag/interfaces/base.rb', line 4

def info
  @info
end

Class Method Details

.obj_or_nil(o) ⇒ Object

avoid returing empty objects



7
8
9
10
11
12
13
# File 'lib/easytag/interfaces/base.rb', line 7

def self.obj_or_nil(o)
  if o.class == String
    ret = o.empty? ? nil : o
  else
    o
  end
end

Instance Method Details

#closeObject



15
16
17
# File 'lib/easytag/interfaces/base.rb', line 15

def close
  @info.close
end