Class: IRuby::Input::Widget
- Inherits:
-
Erector::Widget
- Object
- Erector::Widget
- IRuby::Input::Widget
show all
- Defined in:
- lib/iruby/input/widget.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.builder(method, &block) ⇒ Object
11
12
13
14
15
|
# File 'lib/iruby/input/widget.rb', line 11
def self.builder method, &block
Builder.instance_eval do
define_method method, &block
end
end
|
Instance Method Details
#content ⇒ Object
9
|
# File 'lib/iruby/input/widget.rb', line 9
def content; widget_html; end
|
7
|
# File 'lib/iruby/input/widget.rb', line 7
def widget_css; end
|
8
|
# File 'lib/iruby/input/widget.rb', line 8
def widget_html; end
|
17
18
19
20
21
22
|
# File 'lib/iruby/input/widget.rb', line 17
def widget_join method, *args
strings = args.map do |arg|
arg.is_a?(String) ? arg : arg.send(method)
end
strings.uniq.join("\n")
end
|
6
|
# File 'lib/iruby/input/widget.rb', line 6
def widget_js; end
|