Module: YogaLayout
- Defined in:
- lib/yoga_layout.rb,
lib/yoga_layout/node.rb,
lib/yoga_layout/config.rb,
lib/yoga_layout/version.rb,
lib/yoga_layout/wrapper.rb,
lib/yoga_layout/bindings.rb,
lib/yoga_layout/bindings/misc.rb,
lib/yoga_layout/bindings/enums.rb,
lib/yoga_layout/bindings/ygnode.rb,
lib/yoga_layout/bindings/typedefs.rb,
lib/yoga_layout/bindings/ygconfig.rb,
lib/yoga_layout/bindings/ygnode_properties.rb
Overview
Auto-generated by Rake from Yoga.h Do not edit by hand
Defined Under Namespace
Modules: Bindings Classes: Config, Error, Node, Wrapper
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
- .float_is_undefined?(float) ⇒ Boolean
- .undefined ⇒ Object
-
.underscore(string) ⇒ Object
private
Turn a CamelCase string into a snake_case string.
Class Method Details
.float_is_undefined?(float) ⇒ Boolean
30 31 32 |
# File 'lib/yoga_layout.rb', line 30 def self.float_is_undefined?(float) ::YogaLayout::Bindings.YGFloatIsUndefined(float) end |
.undefined ⇒ Object
26 27 28 |
# File 'lib/yoga_layout.rb', line 26 def self.undefined ::Float::NAN end |
.underscore(string) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Turn a CamelCase string into a snake_case string.
15 16 17 18 19 |
# File 'lib/yoga_layout.rb', line 15 def self.underscore(string) string.gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2'). gsub(/([a-z\d])([A-Z])/,'\1_\2'). downcase end |