Class: Typedown2Blog::Base

Inherits:
Object show all
Defined in:
lib/typedown2blog/base.rb

Direct Known Subclasses

BlogPost

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.logObject



14
15
16
# File 'lib/typedown2blog/base.rb', line 14

def self.log
  Log4r::Logger["Typedown2Blog"]
end

Instance Method Details

#logObject



18
19
20
# File 'lib/typedown2blog/base.rb', line 18

def log
  self.class.log
end

#merge_to_attributes(other) ⇒ Object

Symbolizes keys from yaml hashes while merging



24
25
26
27
28
29
30
# File 'lib/typedown2blog/base.rb', line 24

def merge_to_attributes other
  h = @attributes
  other.each do |k, v|
    h[k.to_sym] = v
  end
  self
end