Method: NicInfo::Main#get_jcr_context
- Defined in:
- lib/nicinfo/nicinfo_main.rb
#get_jcr_context ⇒ Object
763 764 765 766 767 768 769 770 771 772 |
# File 'lib/nicinfo/nicinfo_main.rb', line 763 def get_jcr_context if @jcr_context != nil return @jcr_context end #else ruleset_file = File.join( File.dirname( __FILE__ ), NicInfo::JCR_DIR, NicInfo::RDAP_JCR ) ruleset = File.open( ruleset_file ).read @jcr_context = JCR::Context.new(ruleset, false ) return @jcr_context end |