Skip to content

Commit

Permalink
Merge pull request #24 from splattael/tiny-refactor
Browse files Browse the repository at this point in the history
Nitpicking
  • Loading branch information
jodosha committed Jul 30, 2014
2 parents ed17ad8 + b817cfb commit a31b75f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/lotus/utils/class_attribute.rb
Expand Up @@ -8,9 +8,7 @@ module Utils
# @see Lotus::Utils::ClassAttribute::ClassMethods
module ClassAttribute
def self.included(base)
base.class_eval do
extend ClassMethods
end
base.extend ClassMethods
end

module ClassMethods
Expand Down Expand Up @@ -64,7 +62,7 @@ module ClassMethods
# SmallAirplane.engines # => 2
# SmallAirplane.wheels # => 8
def class_attribute(*attributes)
(class << self; self; end).class_eval do
singleton_class.class_eval do
attr_accessor *attributes
end

Expand Down
2 changes: 1 addition & 1 deletion lib/lotus/utils/path_prefix.rb
Expand Up @@ -97,7 +97,7 @@ def ==(other)

def absolutize(string)
string.tap do |s|
s.insert(0, separator) unless absolute?(s)
s.prepend(separator) unless absolute?(s)
end
end

Expand Down

0 comments on commit a31b75f

Please sign in to comment.