Module: Ruflet::DSL
- Defined in:
- lib/ruflet_ui/ruflet/dsl.rb
Defined Under Namespace
Classes: App
Constant Summary collapse
- DURATION_FACTORS_MS =
{ days: 86_400_000.0, hours: 3_600_000.0, minutes: 60_000.0, seconds: 1_000.0, milliseconds: 1.0, microseconds: 0.001 }.freeze
Class Method Summary collapse
- ._pending_app ⇒ Object
- ._reset_pending_app! ⇒ Object
- .alert_dialog(**props) ⇒ Object
- .alertdialog(**props) ⇒ Object
- .app(host: nil, port: nil, &block) ⇒ Object
- .app_bar(**props) ⇒ Object
- .appbar(**props) ⇒ Object
- .bar_chart(**props) ⇒ Object
- .bar_chart_group(**props) ⇒ Object
- .bar_chart_rod(**props) ⇒ Object
- .bar_chart_rod_stack_item(**props) ⇒ Object
- .barchart(**props) ⇒ Object
- .barchartgroup(**props) ⇒ Object
- .barchartrod(**props) ⇒ Object
- .barchartrodstackitem(**props) ⇒ Object
- .bottom_sheet(**props) ⇒ Object
- .bottomsheet(**props) ⇒ Object
- .button(**props) ⇒ Object
- .candlestick_chart(**props) ⇒ Object
- .candlestick_chart_spot(**props) ⇒ Object
- .candlestickchart(**props) ⇒ Object
- .candlestickchartspot(**props) ⇒ Object
- .center(**props, &block) ⇒ Object
- .chart_axis(**props) ⇒ Object
- .chart_axis_label(**props) ⇒ Object
- .chartaxis(**props) ⇒ Object
- .chartaxislabel(**props) ⇒ Object
- .checkbox(**props) ⇒ Object
- .clipboard(**props) ⇒ Object
- .column(**props, &block) ⇒ Object
- .container(**props, &block) ⇒ Object
- .control(type, **props, &block) ⇒ Object
- .cupertino_action_sheet(**props) ⇒ Object
- .cupertino_alert_dialog(**props) ⇒ Object
- .cupertino_button(**props) ⇒ Object
- .cupertino_dialog_action(**props) ⇒ Object
- .cupertino_filled_button(**props) ⇒ Object
- .cupertino_navigation_bar(**props) ⇒ Object
- .cupertino_slider(**props) ⇒ Object
- .cupertino_switch(**props) ⇒ Object
- .cupertino_text_field(**props) ⇒ Object
- .cupertinoactionsheet(**props) ⇒ Object
- .cupertinoalertdialog(**props) ⇒ Object
- .cupertinobutton(**props) ⇒ Object
- .cupertinodialogaction(**props) ⇒ Object
- .cupertinofilledbutton(**props) ⇒ Object
- .cupertinonavigationbar(**props) ⇒ Object
- .cupertinoslider(**props) ⇒ Object
- .cupertinoswitch(**props) ⇒ Object
- .cupertinotextfield(**props) ⇒ Object
- .default_host ⇒ Object
- .default_port ⇒ Object
- .drag_target(**props, &block) ⇒ Object
- .draggable(**props, &block) ⇒ Object
- .dragtarget(**props, &block) ⇒ Object
- .duration(**parts) ⇒ Object
- .duration_in_milliseconds(parts) ⇒ Object
- .elevated_button(**props) ⇒ Object
- .fab(content = nil, **props) ⇒ Object
- .filled_button(**props) ⇒ Object
- .filledbutton(**props) ⇒ Object
- .floating_action_button(**props) ⇒ Object
- .floatingactionbutton(**props) ⇒ Object
- .gesture_detector(**props, &block) ⇒ Object
- .gesturedetector(**props, &block) ⇒ Object
- .grid_view(**props, &block) ⇒ Object
- .gridview(**props, &block) ⇒ Object
- .icon(**props) ⇒ Object
- .icon_button(**props) ⇒ Object
- .iconbutton(**props) ⇒ Object
- .image(src = nil, **props) ⇒ Object
- .line_chart(**props) ⇒ Object
- .line_chart_data(**props) ⇒ Object
- .line_chart_data_point(**props) ⇒ Object
- .linechart(**props) ⇒ Object
- .linechartdata(**props) ⇒ Object
- .linechartdatapoint(**props) ⇒ Object
- .markdown(value = nil, **props) ⇒ Object
- .navigation_bar(**props, &block) ⇒ Object
- .navigation_bar_destination(**props, &block) ⇒ Object
- .navigationbar(**props, &block) ⇒ Object
- .navigationbardestination(**props, &block) ⇒ Object
- .page(**props, &block) ⇒ Object
- .pie_chart(**props) ⇒ Object
- .pie_chart_section(**props) ⇒ Object
- .piechart(**props) ⇒ Object
- .piechartsection(**props) ⇒ Object
- .radar_chart(**props) ⇒ Object
- .radar_chart_title(**props) ⇒ Object
- .radar_data_set(**props) ⇒ Object
- .radar_data_set_entry(**props) ⇒ Object
- .radarchart(**props) ⇒ Object
- .radarcharttitle(**props) ⇒ Object
- .radardataset(**props) ⇒ Object
- .radardatasetentry(**props) ⇒ Object
- .radio(**props) ⇒ Object
- .radio_group(**props) ⇒ Object
- .radiogroup(**props) ⇒ Object
- .read_duration_part(parts, key) ⇒ Object
- .row(**props, &block) ⇒ Object
- .scatter_chart(**props) ⇒ Object
- .scatter_chart_spot(**props) ⇒ Object
- .scatterchart(**props) ⇒ Object
- .scatterchartspot(**props) ⇒ Object
- .service(type, **props, &block) ⇒ Object
- .snack_bar(**props) ⇒ Object
- .snackbar(**props) ⇒ Object
- .stack(**props, &block) ⇒ Object
- .tab(**props, &block) ⇒ Object
- .tab_bar(**props, &block) ⇒ Object
- .tab_bar_view(**props, &block) ⇒ Object
- .tabbar(**props, &block) ⇒ Object
- .tabbarview(**props, &block) ⇒ Object
- .tabs(**props, &block) ⇒ Object
- .text(value = nil, **props) ⇒ Object
- .text_button(**props) ⇒ Object
- .text_field(**props) ⇒ Object
- .textbutton(**props) ⇒ Object
- .textfield(**props) ⇒ Object
- .web_view(**props) ⇒ Object
- .webview(**props) ⇒ Object
- .widget(type, **props, &block) ⇒ Object
Class Method Details
._pending_app ⇒ Object
29 30 31 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 29 def _pending_app @_pending_app ||= App.new(host: default_host, port: default_port) end |
._reset_pending_app! ⇒ Object
33 34 35 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 33 def _reset_pending_app! @_pending_app = App.new(host: default_host, port: default_port) end |
.alert_dialog(**props) ⇒ Object
84 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 84 def alert_dialog(**props) = _pending_app.alert_dialog(**props) |
.alertdialog(**props) ⇒ Object
85 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 85 def alertdialog(**props) = _pending_app.alertdialog(**props) |
.app(host: nil, port: nil, &block) ⇒ Object
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 37 def app(host: nil, port: nil, &block) host ||= default_host port ||= default_port return App.new(host: host, port: port).tap { |a| a.instance_eval(&block) } if block pending = _pending_app pending.set_endpoint!(host: host, port: port) _reset_pending_app! pending end |
.app_bar(**props) ⇒ Object
73 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 73 def (**props) = _pending_app.(**props) |
.appbar(**props) ⇒ Object
74 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 74 def (**props) = _pending_app.(**props) |
.bar_chart(**props) ⇒ Object
103 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 103 def (**props) = _pending_app.(**props) |
.bar_chart_group(**props) ⇒ Object
105 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 105 def (**props) = _pending_app.(**props) |
.bar_chart_rod(**props) ⇒ Object
107 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 107 def (**props) = _pending_app.(**props) |
.bar_chart_rod_stack_item(**props) ⇒ Object
109 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 109 def (**props) = _pending_app.(**props) |
.barchart(**props) ⇒ Object
104 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 104 def (**props) = _pending_app.(**props) |
.barchartgroup(**props) ⇒ Object
106 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 106 def (**props) = _pending_app.(**props) |
.barchartrod(**props) ⇒ Object
108 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 108 def (**props) = _pending_app.(**props) |
.barchartrodstackitem(**props) ⇒ Object
110 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 110 def (**props) = _pending_app.(**props) |
.bottom_sheet(**props) ⇒ Object
88 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 88 def bottom_sheet(**props) = _pending_app.bottom_sheet(**props) |
.bottomsheet(**props) ⇒ Object
89 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 89 def bottomsheet(**props) = _pending_app.bottomsheet(**props) |
.button(**props) ⇒ Object
65 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 65 def (**props) = _pending_app.(**props) |
.candlestick_chart(**props) ⇒ Object
121 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 121 def candlestick_chart(**props) = _pending_app.candlestick_chart(**props) |
.candlestick_chart_spot(**props) ⇒ Object
123 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 123 def candlestick_chart_spot(**props) = _pending_app.candlestick_chart_spot(**props) |
.candlestickchart(**props) ⇒ Object
122 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 122 def candlestickchart(**props) = _pending_app.candlestickchart(**props) |
.candlestickchartspot(**props) ⇒ Object
124 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 124 def candlestickchartspot(**props) = _pending_app.candlestickchartspot(**props) |
.center(**props, &block) ⇒ Object
53 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 53 def center(**props, &block) = _pending_app.center(**props, &block) |
.chart_axis(**props) ⇒ Object
137 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 137 def chart_axis(**props) = _pending_app.chart_axis(**props) |
.chart_axis_label(**props) ⇒ Object
139 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 139 def chart_axis_label(**props) = _pending_app.chart_axis_label(**props) |
.chartaxis(**props) ⇒ Object
138 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 138 def chartaxis(**props) = _pending_app.chartaxis(**props) |
.chartaxislabel(**props) ⇒ Object
140 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 140 def chartaxislabel(**props) = _pending_app.chartaxislabel(**props) |
.checkbox(**props) ⇒ Object
80 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 80 def checkbox(**props) = _pending_app.checkbox(**props) |
.clipboard(**props) ⇒ Object
75 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 75 def clipboard(**props) = _pending_app.clipboard(**props) |
.column(**props, &block) ⇒ Object
52 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 52 def column(**props, &block) = _pending_app.column(**props, &block) |
.container(**props, &block) ⇒ Object
58 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 58 def container(**props, &block) = _pending_app.container(**props, &block) |
.control(type, **props, &block) ⇒ Object
49 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 49 def control(type, **props, &block) = _pending_app.control(type, **props, &block) |
.cupertino_action_sheet(**props) ⇒ Object
156 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 156 def cupertino_action_sheet(**props) = _pending_app.cupertino_action_sheet(**props) |
.cupertino_alert_dialog(**props) ⇒ Object
154 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 154 def cupertino_alert_dialog(**props) = _pending_app.cupertino_alert_dialog(**props) |
.cupertino_button(**props) ⇒ Object
144 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 144 def (**props) = _pending_app.(**props) |
.cupertino_dialog_action(**props) ⇒ Object
158 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 158 def cupertino_dialog_action(**props) = _pending_app.cupertino_dialog_action(**props) |
.cupertino_filled_button(**props) ⇒ Object
146 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 146 def (**props) = _pending_app.(**props) |
.cupertino_navigation_bar(**props) ⇒ Object
160 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 160 def (**props) = _pending_app.(**props) |
.cupertino_slider(**props) ⇒ Object
152 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 152 def (**props) = _pending_app.(**props) |
.cupertino_switch(**props) ⇒ Object
150 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 150 def cupertino_switch(**props) = _pending_app.cupertino_switch(**props) |
.cupertino_text_field(**props) ⇒ Object
148 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 148 def cupertino_text_field(**props) = _pending_app.cupertino_text_field(**props) |
.cupertinoactionsheet(**props) ⇒ Object
157 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 157 def cupertinoactionsheet(**props) = _pending_app.cupertinoactionsheet(**props) |
.cupertinoalertdialog(**props) ⇒ Object
155 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 155 def cupertinoalertdialog(**props) = _pending_app.cupertinoalertdialog(**props) |
.cupertinobutton(**props) ⇒ Object
145 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 145 def (**props) = _pending_app.(**props) |
.cupertinodialogaction(**props) ⇒ Object
159 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 159 def cupertinodialogaction(**props) = _pending_app.cupertinodialogaction(**props) |
.cupertinofilledbutton(**props) ⇒ Object
147 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 147 def (**props) = _pending_app.(**props) |
.cupertinonavigationbar(**props) ⇒ Object
161 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 161 def (**props) = _pending_app.(**props) |
.cupertinoslider(**props) ⇒ Object
153 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 153 def (**props) = _pending_app.(**props) |
.cupertinoswitch(**props) ⇒ Object
151 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 151 def cupertinoswitch(**props) = _pending_app.cupertinoswitch(**props) |
.cupertinotextfield(**props) ⇒ Object
149 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 149 def cupertinotextfield(**props) = _pending_app.cupertinotextfield(**props) |
.default_host ⇒ Object
19 20 21 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 19 def default_host ENV["RUFLET_HOST"].to_s.strip.empty? ? "0.0.0.0" : ENV["RUFLET_HOST"].to_s end |
.default_port ⇒ Object
23 24 25 26 27 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 23 def default_port raw = ENV["RUFLET_PORT"].to_s value = raw.to_i value > 0 ? value : 8550 end |
.drag_target(**props, &block) ⇒ Object
62 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 62 def drag_target(**props, &block) = _pending_app.drag_target(**props, &block) |
.draggable(**props, &block) ⇒ Object
61 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 61 def draggable(**props, &block) = _pending_app.draggable(**props, &block) |
.dragtarget(**props, &block) ⇒ Object
63 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 63 def dragtarget(**props, &block) = _pending_app.dragtarget(**props, &block) |
.duration(**parts) ⇒ Object
162 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 162 def duration(**parts) = duration_in_milliseconds(parts) |
.duration_in_milliseconds(parts) ⇒ Object
274 275 276 277 278 279 280 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 274 def duration_in_milliseconds(parts) return 0 if parts.nil? || parts.empty? DURATION_FACTORS_MS.reduce(0.0) do |sum, (key, factor)| sum + read_duration_part(parts, key) * factor end.round end |
.elevated_button(**props) ⇒ Object
66 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 66 def (**props) = _pending_app.(**props) |
.fab(content = nil, **props) ⇒ Object
143 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 143 def fab(content = nil, **props) = _pending_app.fab(content, **props) |
.filled_button(**props) ⇒ Object
78 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 78 def (**props) = _pending_app.(**props) |
.filledbutton(**props) ⇒ Object
79 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 79 def (**props) = _pending_app.(**props) |
.floating_action_button(**props) ⇒ Object
91 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 91 def (**props) = _pending_app.(**props) |
.floatingactionbutton(**props) ⇒ Object
92 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 92 def (**props) = _pending_app.(**props) |
.gesture_detector(**props, &block) ⇒ Object
59 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 59 def gesture_detector(**props, &block) = _pending_app.gesture_detector(**props, &block) |
.gesturedetector(**props, &block) ⇒ Object
60 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 60 def gesturedetector(**props, &block) = _pending_app.gesturedetector(**props, &block) |
.grid_view(**props, &block) ⇒ Object
56 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 56 def grid_view(**props, &block) = _pending_app.grid_view(**props, &block) |
.gridview(**props, &block) ⇒ Object
57 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 57 def gridview(**props, &block) = _pending_app.gridview(**props, &block) |
.icon(**props) ⇒ Object
69 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 69 def icon(**props) = _pending_app.icon(**props) |
.icon_button(**props) ⇒ Object
71 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 71 def (**props) = _pending_app.(**props) |
.iconbutton(**props) ⇒ Object
72 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 72 def (**props) = _pending_app.(**props) |
.image(src = nil, **props) ⇒ Object
70 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 70 def image(src = nil, **props) = _pending_app.image(src, **props) |
.line_chart(**props) ⇒ Object
111 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 111 def line_chart(**props) = _pending_app.line_chart(**props) |
.line_chart_data(**props) ⇒ Object
113 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 113 def line_chart_data(**props) = _pending_app.line_chart_data(**props) |
.line_chart_data_point(**props) ⇒ Object
115 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 115 def line_chart_data_point(**props) = _pending_app.line_chart_data_point(**props) |
.linechart(**props) ⇒ Object
112 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 112 def linechart(**props) = _pending_app.linechart(**props) |
.linechartdata(**props) ⇒ Object
114 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 114 def linechartdata(**props) = _pending_app.linechartdata(**props) |
.linechartdatapoint(**props) ⇒ Object
116 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 116 def linechartdatapoint(**props) = _pending_app.linechartdatapoint(**props) |
.markdown(value = nil, **props) ⇒ Object
90 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 90 def markdown(value = nil, **props) = _pending_app.markdown(value, **props) |
.navigation_bar(**props, &block) ⇒ Object
99 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 99 def (**props, &block) = _pending_app.(**props, &block) |
.navigation_bar_destination(**props, &block) ⇒ Object
101 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 101 def (**props, &block) = _pending_app.(**props, &block) |
.navigationbar(**props, &block) ⇒ Object
100 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 100 def (**props, &block) = _pending_app.(**props, &block) |
.navigationbardestination(**props, &block) ⇒ Object
102 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 102 def (**props, &block) = _pending_app.(**props, &block) |
.page(**props, &block) ⇒ Object
48 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 48 def page(**props, &block) = _pending_app.page(**props, &block) |
.pie_chart(**props) ⇒ Object
117 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 117 def pie_chart(**props) = _pending_app.pie_chart(**props) |
.pie_chart_section(**props) ⇒ Object
119 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 119 def pie_chart_section(**props) = _pending_app.pie_chart_section(**props) |
.piechart(**props) ⇒ Object
118 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 118 def piechart(**props) = _pending_app.piechart(**props) |
.piechartsection(**props) ⇒ Object
120 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 120 def piechartsection(**props) = _pending_app.piechartsection(**props) |
.radar_chart(**props) ⇒ Object
125 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 125 def radar_chart(**props) = _pending_app.radar_chart(**props) |
.radar_chart_title(**props) ⇒ Object
127 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 127 def radar_chart_title(**props) = _pending_app.radar_chart_title(**props) |
.radar_data_set(**props) ⇒ Object
129 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 129 def radar_data_set(**props) = _pending_app.radar_data_set(**props) |
.radar_data_set_entry(**props) ⇒ Object
131 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 131 def radar_data_set_entry(**props) = _pending_app.radar_data_set_entry(**props) |
.radarchart(**props) ⇒ Object
126 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 126 def radarchart(**props) = _pending_app.radarchart(**props) |
.radarcharttitle(**props) ⇒ Object
128 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 128 def radarcharttitle(**props) = _pending_app.radarcharttitle(**props) |
.radardataset(**props) ⇒ Object
130 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 130 def radardataset(**props) = _pending_app.radardataset(**props) |
.radardatasetentry(**props) ⇒ Object
132 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 132 def radardatasetentry(**props) = _pending_app.radardatasetentry(**props) |
.radio(**props) ⇒ Object
81 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 81 def radio(**props) = _pending_app.radio(**props) |
.radio_group(**props) ⇒ Object
82 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 82 def radio_group(**props) = _pending_app.radio_group(**props) |
.radiogroup(**props) ⇒ Object
83 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 83 def radiogroup(**props) = _pending_app.radiogroup(**props) |
.read_duration_part(parts, key) ⇒ Object
282 283 284 285 286 287 288 289 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 282 def read_duration_part(parts, key) raw = parts[key] || parts[key.to_s] return 0.0 if raw.nil? return raw.to_f if raw.is_a?(Numeric) return raw.to_f if raw.is_a?(String) && raw.match?(/\A-?\d+(\.\d+)?\z/) 0.0 end |
.row(**props, &block) ⇒ Object
54 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 54 def row(**props, &block) = _pending_app.row(**props, &block) |
.scatter_chart(**props) ⇒ Object
133 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 133 def scatter_chart(**props) = _pending_app.scatter_chart(**props) |
.scatter_chart_spot(**props) ⇒ Object
135 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 135 def scatter_chart_spot(**props) = _pending_app.scatter_chart_spot(**props) |
.scatterchart(**props) ⇒ Object
134 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 134 def scatterchart(**props) = _pending_app.scatterchart(**props) |
.scatterchartspot(**props) ⇒ Object
136 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 136 def scatterchartspot(**props) = _pending_app.scatterchartspot(**props) |
.service(type, **props, &block) ⇒ Object
51 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 51 def service(type, **props, &block) = _pending_app.service(type, **props, &block) |
.snack_bar(**props) ⇒ Object
86 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 86 def (**props) = _pending_app.(**props) |
.snackbar(**props) ⇒ Object
87 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 87 def (**props) = _pending_app.(**props) |
.stack(**props, &block) ⇒ Object
55 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 55 def stack(**props, &block) = _pending_app.stack(**props, &block) |
.tab(**props, &block) ⇒ Object
94 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 94 def tab(**props, &block) = _pending_app.tab(**props, &block) |
.tab_bar(**props, &block) ⇒ Object
95 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 95 def (**props, &block) = _pending_app.(**props, &block) |
.tab_bar_view(**props, &block) ⇒ Object
97 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 97 def (**props, &block) = _pending_app.(**props, &block) |
.tabbar(**props, &block) ⇒ Object
96 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 96 def (**props, &block) = _pending_app.(**props, &block) |
.tabbarview(**props, &block) ⇒ Object
98 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 98 def (**props, &block) = _pending_app.(**props, &block) |
.tabs(**props, &block) ⇒ Object
93 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 93 def tabs(**props, &block) = _pending_app.tabs(**props, &block) |
.text(value = nil, **props) ⇒ Object
64 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 64 def text(value = nil, **props) = _pending_app.text(value, **props) |
.text_button(**props) ⇒ Object
76 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 76 def (**props) = _pending_app.(**props) |
.text_field(**props) ⇒ Object
67 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 67 def text_field(**props) = _pending_app.text_field(**props) |
.textbutton(**props) ⇒ Object
77 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 77 def (**props) = _pending_app.(**props) |
.textfield(**props) ⇒ Object
68 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 68 def textfield(**props) = _pending_app.textfield(**props) |
.web_view(**props) ⇒ Object
141 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 141 def web_view(**props) = _pending_app.web_view(**props) |
.webview(**props) ⇒ Object
142 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 142 def webview(**props) = _pending_app.webview(**props) |
.widget(type, **props, &block) ⇒ Object
50 |
# File 'lib/ruflet_ui/ruflet/dsl.rb', line 50 def (type, **props, &block) = _pending_app.(type, **props, &block) |