Module: RbTags

Defined in:
lib/rbtags.rb,
lib/rbtags/version.rb,
lib/rbtags/rake/tasks.rb

Defined Under Namespace

Modules: Formats, Object, Rake Classes: File

Constant Summary collapse

Version =
'0.1.0'

Class Method Summary collapse

Class Method Details

.format(format = nil) ⇒ Object



18
19
20
21
# File 'lib/rbtags.rb', line 18

def format(format = nil)
  return @format = format if format
  @format ||= Formats::Extended.new
end

.pathObject



23
24
25
# File 'lib/rbtags.rb', line 23

def path
  ::File.expand_path('..', __FILE__)
end

.with_format(with) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/rbtags.rb', line 9

def with_format(with)
  saved_format = format
  format with
  yield
  format.finish
ensure
  format saved_format
end