class AngularSprinkles::Element::Html
Public Class Methods
new(args)
click to toggle source
# File lib/angular_sprinkles/element/html.rb, line 4 def initialize(args) @args = (args || {}).symbolize_keys end
Public Instance Methods
attributes()
click to toggle source
# File lib/angular_sprinkles/element/html.rb, line 8 def attributes @args.except(:tag) end
tag()
click to toggle source
# File lib/angular_sprinkles/element/html.rb, line 12 def tag @args[:tag] || :div end