Module: Sevgi::Graphics::Mixtures::Save::InstanceMethods

Defined in:
lib/sevgi/graphics/mixtures/save.rb

Constant Summary collapse

EXT =
".svg"

Instance Method Summary collapse

Instance Method Details

#OutObject



10
# File 'lib/sevgi/graphics/mixtures/save.rb', line 10

def Out(*, **)        = F.out(self.(**), *)

#Out!Object



12
# File 'lib/sevgi/graphics/mixtures/save.rb', line 12

def Out!(*, **)       = F.out(self.(**), *, update: true)

#Save(*paths) ⇒ Object



14
# File 'lib/sevgi/graphics/mixtures/save.rb', line 14

def Save(*paths, **)  = Out(F.touch(*(paths.empty? ? caller_locations(1..1).first.path : paths), ext: EXT), **)

#Save!(*paths) ⇒ Object



16
# File 'lib/sevgi/graphics/mixtures/save.rb', line 16

def Save!(*paths, **) = Out!(F.touch(*(paths.empty? ? caller_locations(1..1).first.path : paths), ext: EXT), **)