Class: Maglev::Content::Checkbox

Inherits:
Base
  • Object
show all
Defined in:
app/components/maglev/content/checkbox.rb

Instance Attribute Summary

Attributes inherited from Base

#content, #scope, #setting

Instance Method Summary collapse

Methods inherited from Base

#asset_host, #dom_data, #initialize, #tag, #tag_data, #tag_id

Constructor Details

This class inherits a constructor from Maglev::Content::Base

Instance Method Details

#false?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/components/maglev/content/checkbox.rb', line 10

def false?
  !true?
end

#to_sObject



14
15
16
# File 'app/components/maglev/content/checkbox.rb', line 14

def to_s
  content
end

#true?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/components/maglev/content/checkbox.rb', line 6

def true?
  !!cast_content
end