lib/code/parser.rb in code-ruby-0.4.0 vs lib/code/parser.rb in code-ruby-0.5.0

- old
+ new

@@ -1,4 +1,19 @@ class Code class Parser + def initialize(input) + @input = input + end + + def self.parse(input) + new(input).parse + end + + def parse + ::Code::Parser::Code.parse(input) + end + + private + + attr_reader :input end end