class States::Dsl::VariableChoice
Public Class Methods
new(path, naming)
click to toggle source
Calls superclass method
States::Dsl::Choice::new
# File lib/states/dsl/variable_choice.rb, line 6 def initialize(path, naming) super(naming) @variable = path end
Public Instance Methods
serializable_hash()
click to toggle source
Calls superclass method
States::Dsl::Choice#serializable_hash
# File lib/states/dsl/variable_choice.rb, line 11 def serializable_hash super.merge("Variable" => @variable).merge(condition_hash) end