Class: HasHelpers::FactoryScenario::Runner::Reference
- Inherits:
-
Struct
- Object
- Struct
- HasHelpers::FactoryScenario::Runner::Reference
- Defined in:
- lib/has_helpers/factory_scenario/runner.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
Returns the value of attribute raw.
Instance Method Summary collapse
Instance Attribute Details
#raw ⇒ Object
Returns the value of attribute raw
13 14 15 |
# File 'lib/has_helpers/factory_scenario/runner.rb', line 13 def raw @raw end |
Instance Method Details
#alias_name ⇒ Object
18 19 20 |
# File 'lib/has_helpers/factory_scenario/runner.rb', line 18 def alias_name segments.first.to_sym end |
#attr_path ⇒ Object
22 23 24 |
# File 'lib/has_helpers/factory_scenario/runner.rb', line 22 def attr_path segments[1..] || [] end |
#segments ⇒ Object
14 15 16 |
# File 'lib/has_helpers/factory_scenario/runner.rb', line 14 def segments raw.to_s.sub(/\A@/, "").split(".") end |