Skip to content
Browse files

remove duplicate accessor

  • Loading branch information...
1 parent 5aee071 commit 95172236888a6e984319e63bde82c9f4300adb42 @hsbt hsbt committed Jan 5, 2013
Showing with 5 additions and 8 deletions.
  1. +0 −4 misc/style/gfm/gfm_style.rb
  2. +5 −0 tdiary/diary_base.rb
  3. +0 −4 tdiary/style/wiki_style.rb
View
4 misc/style/gfm/gfm_style.rb
@@ -38,10 +38,6 @@ class GfmSection
include SectionBase
include Twitter::Autolink
- attr_reader :subtitle, :author
- attr_reader :categories, :stripped_subtitle
- attr_reader :subtitle_to_html, :stripped_subtitle_to_html, :body_to_html
-
def initialize(fragment, author = nil)
@author = author
@subtitle, @body = fragment.split(/\n/, 2)
View
5 tdiary/diary_base.rb
@@ -4,6 +4,11 @@
#
module TDiary
module SectionBase
+
+ attr_reader :subtitle, :author
+ attr_reader :categories, :stripped_subtitle
+ attr_reader :subtitle_to_html, :stripped_subtitle_to_html, :body_to_html
+
def body
@body.dup
end
View
4 tdiary/style/wiki_style.rb
@@ -16,10 +16,6 @@ module TDiary
class WikiSection
include SectionBase
- attr_reader :subtitle, :author
- attr_reader :categories, :stripped_subtitle
- attr_reader :subtitle_to_html, :stripped_subtitle_to_html, :body_to_html
-
def initialize( fragment, author = nil )
@author = author
if fragment[0] == ?! then

0 comments on commit 9517223

Please sign in to comment.
Something went wrong with that request. Please try again.