Module: Haml::AttributeBuilder
- Defined in:
- lib/haml/attribute_builder.rb,
ext/haml/haml.c
Constant Summary collapse
- BOOLEAN_ATTRIBUTES =
%w[disabled readonly multiple checked autobuffer autoplay controls loop selected hidden scoped async defer reversed ismap seamless muted required autofocus novalidate formnovalidate open pubdate itemscope allowfullscreen default inert sortable truespeed typemustmatch download].freeze
Class Method Summary collapse
Class Method Details
.build
493 494 495 496 497 498 499 500 501 502 |
# File 'ext/haml/haml.c', line 493
static VALUE
rb_haml_build(int argc, VALUE *argv, RB_UNUSED_VAR(VALUE self))
{
VALUE array;
rb_check_arity(argc, 5, UNLIMITED_ARGUMENTS);
rb_scan_args(argc - 5, argv + 5, "*", &array);
return haml_build(argv[0], argv[1], argv[2], argv[3], argv[4], array);
}
|
.build_aria
471 472 473 474 475 476 477 478 479 480 |
# File 'ext/haml/haml.c', line 471
static VALUE
rb_haml_build_aria(int argc, VALUE *argv, RB_UNUSED_VAR(VALUE self))
{
VALUE array;
rb_check_arity(argc, 2, UNLIMITED_ARGUMENTS);
rb_scan_args(argc - 2, argv + 2, "*", &array);
return haml_build_data(argv[0], argv[1], array, str_aria);
}
|
.build_class
460 461 462 463 464 465 466 467 468 469 |
# File 'ext/haml/haml.c', line 460
static VALUE
rb_haml_build_class(int argc, VALUE *argv, RB_UNUSED_VAR(VALUE self))
{
VALUE array;
rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS);
rb_scan_args(argc - 1, argv + 1, "*", &array);
return haml_build_class(argv[0], array);
}
|
.build_data
482 483 484 485 486 487 488 489 490 491 |
# File 'ext/haml/haml.c', line 482
static VALUE
rb_haml_build_data(int argc, VALUE *argv, RB_UNUSED_VAR(VALUE self))
{
VALUE array;
rb_check_arity(argc, 2, UNLIMITED_ARGUMENTS);
rb_scan_args(argc - 2, argv + 2, "*", &array);
return haml_build_data(argv[0], argv[1], array, str_data);
}
|
.build_id
449 450 451 452 453 454 455 456 457 458 |
# File 'ext/haml/haml.c', line 449
static VALUE
rb_haml_build_id(int argc, VALUE *argv, RB_UNUSED_VAR(VALUE self))
{
VALUE array;
rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS);
rb_scan_args(argc - 1, argv + 1, "*", &array);
return haml_build_id(argv[0], array);
}
|