lib/brief/document/section/mapping.rb in brief-1.2.0 vs lib/brief/document/section/mapping.rb in brief-1.3.0
- old
+ new
@@ -1,8 +1,8 @@
class Brief::Document::Section
class Mapping
- def initialize(title, options={})
+ def initialize(title, options = {})
@title = title
@options = options
@config = {}.to_mash
end
@@ -12,26 +12,20 @@
def selector_config
config.selectors
end
- def config
- @config
- end
+ attr_reader :config
- def options
- @options
- end
+ attr_reader :options
- def title
- @title
- end
+ attr_reader :title
def selector
@selector || :next
end
- def each(*args, &block)
+ def each(*args, &_block)
@selector = args.first
self
end
def heading(*args, &block)