class Cucumber::Messages::FeatureChild
#
A child node of a ‘Feature` node
*
#
Represents the FeatureChild message in Cucumber’s message protocol.
#
def self.from_h(hash)
Cucumber::Messages::FeatureChild.from_h(some_hash) # => #
corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new FeatureChild from the given hash.
#
def self.from_h(hash) return nil if hash.nil? new( rule: Rule.from_h(hash[:rule]), background: Background.from_h(hash[:background]), scenario: Scenario.from_h(hash[:scenario]) ) end
def initialize(
def initialize( rule: nil, background: nil, scenario: nil ) @rule = rule @background = background @scenario = scenario super() end