Class: Glaemscribe::API::SubRule
Instance Attribute Summary collapse
-
#dst_combination ⇒ Object
readonly
Returns the value of attribute dst_combination.
-
#src_combination ⇒ Object
readonly
Returns the value of attribute src_combination.
Instance Method Summary collapse
-
#initialize(rule, src_combination, dst_combination) ⇒ SubRule
constructor
A new instance of SubRule.
- #p ⇒ Object
Constructor Details
#initialize(rule, src_combination, dst_combination) ⇒ SubRule
Returns a new instance of SubRule.
29 30 31 32 |
# File 'lib/api/sub_rule.rb', line 29 def initialize(rule, src_combination, dst_combination) @src_combination = src_combination @dst_combination = dst_combination end |
Instance Attribute Details
#dst_combination ⇒ Object (readonly)
Returns the value of attribute dst_combination.
27 28 29 |
# File 'lib/api/sub_rule.rb', line 27 def dst_combination @dst_combination end |
#src_combination ⇒ Object (readonly)
Returns the value of attribute src_combination.
27 28 29 |
# File 'lib/api/sub_rule.rb', line 27 def src_combination @src_combination end |
Instance Method Details
#p ⇒ Object
34 35 36 |
# File 'lib/api/sub_rule.rb', line 34 def p "#{@src_combination.inspect} => #{@dst_combination.inspect} \n" end |