Module: IronCalc::DefinedNames
Overview
Instance Method Summary collapse
-
#defined_names ⇒ Array<Hash>
Same as
get_defined_name_list: defined names as an Array of Hashes with Symbol keys: [{ name: "_key", scope: nil, formula: "Sheet1!$C$1" }, ...]. -
#valid_defined_name?(name, scope, formula) ⇒ Boolean
Whether #new_defined_name would succeed for these arguments: the boolean form of
is_valid_defined_name, which raises with the reason instead.
Instance Method Details
#defined_names ⇒ Array<Hash>
Same as get_defined_name_list: defined names as an Array of Hashes with
Symbol keys:
[{ name: "_key", scope: nil, formula: "Sheet1!$C$1" }, ...]
13 14 15 |
# File 'lib/ironcalc/model.rb', line 13 def defined_names get_defined_name_list end |
#valid_defined_name?(name, scope, formula) ⇒ Boolean
Whether #new_defined_name would succeed for these arguments: the boolean
form of is_valid_defined_name, which raises with the reason instead.
24 25 26 27 28 29 |
# File 'lib/ironcalc/model.rb', line 24 def valid_defined_name?(name, scope, formula) is_valid_defined_name(name, scope, formula) true rescue Error false end |