Module: SAFT

Defined in:
lib/saft.rb,
lib/saft/version.rb

Defined Under Namespace

Modules: V2

Constant Summary collapse

VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.gem_rootObject



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

def self.gem_root
  Pathname(__dir__).parent
end

.nokogiri_save_settingObject



21
22
23
24
25
# File 'lib/saft.rb', line 21

def self.nokogiri_save_setting
  return @nokogiri_save_setting if defined?(@nokogiri_save_setting)

  @nokogiri_save_setting = Nokogiri::XML::Node::SaveOptions::AS_XML
end

.nokogiri_save_setting=(value) ⇒ Object



17
18
19
# File 'lib/saft.rb', line 17

def self.nokogiri_save_setting=(value)
  @nokogiri_save_setting = value
end