Class: Fiona7::Builder::ObjBuilder
- Inherits:
-
Object
- Object
- Fiona7::Builder::ObjBuilder
- Includes:
- NameAndParentFromPath
- Defined in:
- lib/fiona7/builder/obj_builder.rb,
lib/fiona7/builder/obj_builder.rb
Direct Known Subclasses
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(values) ⇒ ObjBuilder
constructor
A new instance of ObjBuilder.
- #validate ⇒ Object
Methods included from NameAndParentFromPath
#name_and_parent_path_from_path
Constructor Details
#initialize(values) ⇒ ObjBuilder
Returns a new instance of ObjBuilder.
74 75 76 77 78 79 80 |
# File 'lib/fiona7/builder/obj_builder.rb', line 74 def initialize(values) @values = ParamPreprocessor.call(values) # garbage @values.delete(:_modification) # revert command sends this info. which is silly. @values.delete(:_last_changed) end |
Instance Method Details
#build ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/fiona7/builder/obj_builder.rb', line 82 def build assert_valid prepare_object store_attributes @obj end |
#validate ⇒ Object
94 95 96 |
# File 'lib/fiona7/builder/obj_builder.rb', line 94 def validate true end |