Class: Typedown2Blog::Base
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #log ⇒ Object
-
#merge_to_attributes(other) ⇒ Object
Symbolizes keys from yaml hashes while merging.
Class Method Details
.log ⇒ Object
14 15 16 |
# File 'lib/typedown2blog/base.rb', line 14 def self.log Log4r::Logger["Typedown2Blog"] end |
Instance Method Details
#log ⇒ Object
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 |