Class: Canopus::Decoration::Item

Inherits:
Data
  • Object
show all
Defined in:
lib/canopus/decoration.rb,
sig/decoration.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content ⇒ Object (readonly)

Returns the value of attribute content

Returns:

  • (Object) —

    the current value of content



6
7
8
# File 'lib/canopus/decoration.rb', line 6

def content
  @content
end

#kind ⇒ Object (readonly)

Returns the value of attribute kind

Returns:

  • (Object) —

    the current value of kind



6
7
8
# File 'lib/canopus/decoration.rb', line 6

def kind
  @kind
end

#on_click ⇒ Object (readonly)

Returns the value of attribute on_click

Returns:

  • (Object) —

    the current value of on_click



6
7
8
# File 'lib/canopus/decoration.rb', line 6

def on_click
  @on_click
end

#priority ⇒ Object (readonly)

Returns the value of attribute priority

Returns:

  • (Object) —

    the current value of priority



6
7
8
# File 'lib/canopus/decoration.rb', line 6

def priority
  @priority
end

#range ⇒ Object (readonly)

Returns the value of attribute range

Returns:

  • (Object) —

    the current value of range



6
7
8
# File 'lib/canopus/decoration.rb', line 6

def range
  @range
end

#row ⇒ Object (readonly)

Returns the value of attribute row

Returns:

  • (Object) —

    the current value of row



6
7
8
# File 'lib/canopus/decoration.rb', line 6

def row
  @row
end

#source ⇒ Object (readonly)

Returns the value of attribute source

Returns:

  • (Object) —

    the current value of source



6
7
8
# File 'lib/canopus/decoration.rb', line 6

def source
  @source
end

#style ⇒ Object (readonly)

Returns the value of attribute style

Returns:

  • (Object) —

    the current value of style



6
7
8
# File 'lib/canopus/decoration.rb', line 6

def style
  @style
end

Class Method Details

.new ⇒ instance

Parameters:

  • kind (kind)
  • range (Range[Integer], nil)
  • row (Integer, nil)
  • content (Object)
  • style (Object)
  • priority (Numeric)
  • source (Symbol, nil)
  • on_click (click_handler, nil)

Returns:

  • (instance)


24
# File 'sig/decoration.rbs', line 24

def self.new: (kind kind, Range[Integer]? range, Integer? row, untyped content, untyped style, Numeric priority, Symbol? source, click_handler? on_click) -> instance