source: ruby/branches/0.0/adl_parser/lib/validator.rb@ 167

Last change on this file since 167 was 167, checked in by KOBAYASHI, Shinji, 15 years ago

adjust for rails

File size: 298 bytes
Line 
1$:.unshift File.join(File.dirname(__FILE__))
2require 'parser.rb'
3
4
5module OpenEhr
6 module ADL
7
8 class Validator
9 def initialize(parser)
10 @parser = parser
11 end
12
13 def validate(input_string, name = nil)
14 @parser.parse(input_string, name)
15 end
16 end
17
18 end
19end
20
Note: See TracBrowser for help on using the repository browser.