Class: FlameChannelParser::Parser2012

Inherits:
Parser2011
  • Object
show all
Defined in:
lib/parser_2012.rb

Overview

This parser is automatically used for 2012 setups

Defined Under Namespace

Classes: ModernKey

Constant Summary

Constant Summary

Constants inherited from Parser2011

FlameChannelParser::Parser2011::CHANNEL_MATCHER, FlameChannelParser::Parser2011::NODE_NAME_MATCHER, FlameChannelParser::Parser2011::NODE_TYPE_MATCHER

Instance Method Summary (collapse)

Methods inherited from Parser2011

#channel_is_useful?, #parse

Instance Method Details

- (Object) create_key



56
57
58
# File 'lib/parser_2012.rb', line 56

def create_key
  ModernKey.new
end

- (Object) matchers



41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/parser_2012.rb', line 41

def matchers
  [
    [:frame, :to_i,  /Frame ([\-\d\.]+)/],
    [:value, :to_f,  /Value ([\-\d\.]+)/],
    [:r_handle_x, :to_f, /RHandleX ([\-\d\.]+)/],
    [:l_handle_x, :to_f, /LHandleX ([\-\d\.]+)/],
    [:r_handle_y, :to_f, /RHandleY ([\-\d\.]+)/],
    [:l_handle_y, :to_f, /LHandleY ([\-\d\.]+)/],
    [:curve_mode, :to_s,  /CurveMode (\w+)/],
    [:curve_order, :to_s,  /CurveOrder (\w+)/],
    [:break_slope, :to_s,  /BreakSlope (\w+)/],
  ]
end