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
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
.build_attributes(attrib_class, attrib_args) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/easytag/interfaces/base.rb', line 10 def self.build_attributes(attrib_class, attrib_args) attrib_args.each do |attrib_args| attrib = attrib_class.new(attrib_args) define_method(attrib.name) do instance_variable_get(attrib.ivar) || instance_variable_set(attrib.ivar, attrib.call(self)) end attrib.aliases.each { |a| alias_method a, attrib.name} end end |
Instance Method Details
#close ⇒ Object
6 7 8 |
# File 'lib/easytag/interfaces/base.rb', line 6 def close @info.close end |