Module: Esvg

Extended by:
Esvg
Included in:
Esvg
Defined in:
lib/esvg.rb,
lib/esvg/svg.rb,
lib/esvg/version.rb,
lib/esvg/railties.rb

Defined Under Namespace

Modules: Helpers Classes: Railtie, SVG

Constant Summary collapse

VERSION =
"2.8.7"

Instance Method Summary collapse

Instance Method Details

#embedObject



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

def embed
  new.embed
end

#new(options = {}) ⇒ Object



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

def new(options={})
  SVG.new(options)
end

#rails?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/esvg.rb', line 22

def rails?
  defined?(Rails)
end