Sha256: fa2aafbf78a1c949ac0b2ef167b245c7384fd32e0225818a95af536940f50bd4
Contents?: true
Size: 699 Bytes
Versions: 52
Compression:
Stored size: 699 Bytes
Contents
# Copyright (C) 2011, KADO Masanori <kdmsnr@gmail.com> # You can redistribute it and/or modify it under GPL. require 'tdiary/tdiary_day_ext' module TDiary class TdiaryextDiary; end class TdiaryDiary attr_accessor :section_no alias :_orig_to_html4 :to_html4 def to_html4( opt ) if @section_no idx = @section_no.to_i @sections = [@sections[idx - 1]] end _orig_to_html4 opt end alias :_orig_to_chtml :to_chtml def to_chtml( opt ) if @section_no idx = @section_no.to_i @sections = [@sections[idx - 1]] end _orig_to_chtml opt end end end # Local Variables: # mode: ruby # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 # End: # vim: ts=3
Version data entries
52 entries across 46 versions & 2 rubygems