Class: EasyTag::Interfaces::Base
- Inherits:
-
Object
- Object
- EasyTag::Interfaces::Base
- Defined in:
- lib/easytag/interfaces/base.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
Class Method Summary collapse
-
.obj_or_nil(o) ⇒ Object
avoid returing empty objects.
Instance Method Summary collapse
Instance Attribute Details
#info ⇒ Object (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
#close ⇒ Object
15 16 17 |
# File 'lib/easytag/interfaces/base.rb', line 15 def close @info.close end |