Module: TagFormatter

Defined in:
lib/tag_formatter/formatter.rb,
lib/tag_formatter.rb,
lib/tag_formatter/version.rb

Overview

Author:

  • Mark Seymour

Defined Under Namespace

Classes: Formatter, Version

Class Method Summary collapse

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to TagFormatter::Formatter



13
14
15
16
# File 'lib/tag_formatter.rb', line 13

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(input, params = {}) ⇒ TagFormatter::Formatter

Alias for TagFormatter::Formatter.new



8
9
10
# File 'lib/tag_formatter.rb', line 8

def new(input, params={})
  TagFormatter::Formatter.new(input, params)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


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

def respond_to?(method, include_private=false)
  new.respond_to?(method, include_private) || super(method, include_private)
end