Module: HMachine::Pattern::TypeValue
- Extended by:
- HMachine
- Defined in:
- lib/hmachine/pattern/typevalue.rb
Constant Summary
Constants included from HMachine
Class Method Summary collapse
Methods included from HMachine
extract, extract_from, find, find_in, found_in?, get, get_document, get_url, map, normalize, parse, parse_first, search, valid?, validate
Class Method Details
.get_value(node) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/hmachine/pattern/typevalue.rb', line 22 def self.get_value(node) if Pattern::URL.valid?(node) Pattern::URL.extract_from(node) else Pattern::ValueClass.extract_from(node) end end |