lib/ecm/cms/importers/navigation.rb in ecm_cms2-1.1.1 vs lib/ecm/cms/importers/navigation.rb in ecm_cms2-2.0.2
- old
+ new
@@ -1,10 +1,10 @@
module Ecm
module Cms
module Importers
class Navigation
- def initialize(yaml, option = {})
+ def initialize(yaml, _option = {})
@navigations = nil
@yaml = YAML.load(yaml)
end
def build_navigations
@@ -18,13 +18,10 @@
def navigations
@navigations ||= build_navigations
end
- def yaml
- @yaml
- end
+ attr_reader :yaml
end
end
end
end
-