Class: Fiona7::Builder::ObjBuilder

Inherits:
Object
  • Object
show all
Includes:
NameAndParentFromPath
Defined in:
lib/fiona7/builder/obj_builder.rb,
lib/fiona7/builder/obj_builder.rb

Direct Known Subclasses

ObjUpdater, WidgetBuilder

Instance Method Summary collapse

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

#buildObject



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

  write_widget_pool
  store_attributes

  widgets_gc

  @obj
end

#validateObject



94
95
96
# File 'lib/fiona7/builder/obj_builder.rb', line 94

def validate
  true
end